windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol-d0fc481e.md
Gets or sets a value specifying whether link hints are displayed.
Namespace : DevExpress.XtraNavBar
Assembly : DevExpress.XtraNavBar.v25.2.dll
NuGet Package : DevExpress.Win
[DefaultValue(true)]
[XtraSerializableProperty]
public bool ShowLinkHint { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property ShowLinkHint As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if link hints are displayed, otherwise false.
|
Link hints can be specified via the NavElement.Hint property of a NavBarItem object. You can access the desired object via the NavBarControl.Items property.
You can also specify link hints by writing a NavBarControl.GetHint event handler.
The following sample code assigns hints to all items of the NavBarControl. This is performed via the NavElement.Hint property of NavBarItem objects. Item captions are assigned as hint text.
The NavBarControl.ShowLinkHint property is set to true to enable displaying link hints. Review the image below for an example of code execution results.
using DevExpress.XtraNavBar;
// ...
for (int i = 0; i < navBarControl1.Items.Count; i++) {
NavBarItem currItem = navBarControl1.Items[i];
currItem.Hint = currItem.Caption;
}
navBarControl1.ShowLinkHint = true;
Dim I As Integer
For I = 0 To NavBarControl1.Items.Count - 1
Dim CurrItem As NavBarItem = NavBarControl1.Items(I)
CurrItem.Hint = CurrItem.Caption
Next
NavBarControl1.ShowLinkHint = True
See Also