Skip to main content
A newer version of this page is available. .

NavBarGroup.SelectedLinkIndex Property

Gets or sets a value specifying the index of the group’s selected link.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v19.1.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty]
public virtual int SelectedLinkIndex { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value specifying the zero-based index of the selected link within the group. -1 if none of the group’s links are curretly selected.

Remarks

Link selection can be enabled via the NavBarControl.LinkSelectionMode property.

Read the SelectedLinkIndex property value to obtain the index of the selected link. The obtained value corresponds to the index of the NavBarItemLink object within the NavBarGroup.ItemLinks collection. Assign the index of an item to this property to select the item. Setting the SelectedLink property to -1 or a value greater than the last available link index deselects all links within the group.

See Also