Skip to main content

NavBarGroup.TopVisibleLinkIndex Property

Gets or sets the index of the link which is displayed at the top of the current group.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int TopVisibleLinkIndex { get; set; }

Property Value

Type Default Description
Int32 0

An integer value specifying the top visible link’s zero-based index.

Remarks

Use the TopVisibleLinkIndex property to scroll the group’s client area when links don’t fit into it. In such an instance, scrolling can also be performed by an end-user by clicking scroll buttons.

Assigning a negative value to the TopVisibleLinkIndex property makes the first link top visible. Assigning a value greater than the last available link index moves the last link to the top.

The image below displays a NavBarControl control whose second group’s TopVisibleLinkIndex property is set to 0 and 1 respectively.

Groups - TopVisibleLink

See Also