Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavReadOnlyLinkCollection.IndexOf(NavBarItemLink) Method

Returns the specified link’s position within the collection.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual int IndexOf(
    NavBarItemLink link
)

#Parameters

Name Type Description
link NavBarItemLink

A NavBarItemLink object representing the link whose index is to be obtained.

#Returns

Type Description
Int32

An integer value representing the zero-based index of the specified link within the collection.

#Remarks

If the specified item is not in the collection, the IndexOf method returns -1.

See Also