Back to Devexpress

NavBarControl.SelectedLink Property

windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol-2e9efc2b.md

latest2.6 KB
Original Source

NavBarControl.SelectedLink Property

Gets or sets an object representing the selected link.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[Browsable(false)]
public virtual NavBarItemLink SelectedLink { get; set; }
vb
<Browsable(False)>
Public Overridable Property SelectedLink As NavBarItemLink

Property Value

TypeDescription
NavBarItemLink

A NavBarItemLink object representing the selected link.

|

Remarks

End-users can select links via mouse clicks. The NavBarControl also provides the capability to select links in code. You can use the SelectedLink property for this purpose.

In the Navigation Pane and Side Bar Views, the SelectedLink property specifies the selected link in the active group (NavBarControl.ActiveGroup). In the Explorer Bar Views, which provide access to all groups simultaneously, the SelectedLink property specifies the first group’s selected link. To refer to the selected link in a specific group, use the NavBarGroup.SelectedLink or NavBarGroup.SelectedLinkIndex property instead. If link selection is prohibited, the SelectedLink property returns null and assigning the SelectedLink property has no effect.

See the NavBarControl.LinkSelectionMode topic for details on enabling link selection.

See Also

LinkSelectionMode

SelectedLink

SelectedLinkIndex

UpdateSelectedLink()

NavBarControl Class

NavBarControl Members

DevExpress.XtraNavBar Namespace