Back to Devexpress

NavBarGroup.SelectedLinkIndex Property

windowsforms-devexpress-dot-xtranavbar-dot-navbargroup-68b8f9f2.md

latest2.2 KB
Original Source

NavBarGroup.SelectedLinkIndex Property

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

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(-1)]
[XtraSerializableProperty]
public virtual int SelectedLinkIndex { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty>
Public Overridable Property SelectedLinkIndex As Integer

Property Value

TypeDefaultDescription
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

NavBarGroup.SelectedLink

NavBarControl.SelectedLink

LinkSelectionMode

NavBarGroup Class

NavBarGroup Members

DevExpress.XtraNavBar Namespace