Back to Devexpress

NavBarControl.ShowGroupHint Property

windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol-dc8d53f2.md

latest3.0 KB
Original Source

NavBarControl.ShowGroupHint Property

Gets or sets a value specifying whether group hints are displayed.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public bool ShowGroupHint { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Property ShowGroupHint As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if group hints are displayed; otherwise false.

|

Remarks

Use the NavElement.Hint property of a NavBarGroup object to specify a group’s hint. The desired NavBarGroup object can be obtained via the NavBarControl.Groups property.

You can also specify group hints by writing a NavBarControl.GetHint event handler.

Example

The following sample code assigns hints to all groups of the NavBarControl control. This is performed via the NavElement.Hint property of NavBarGroup objects. Group captions are assigned as hint text.

The NavBarControl.ShowGroupHint property is set to true to enable displaying of group hints. Review the image below for an example of code execution results.

csharp
using DevExpress.XtraNavBar;
// ...
for (int i = 0; i < navBarControl1.Groups.Count; i++) {
   NavBarGroup currGroup = navBarControl1.Groups[i];
   currGroup.Hint = currGroup.Caption;
}
navBarControl1.ShowGroupHint = true;
vb
Imports DevExpress.XtraNavBar
' ...
Dim I As Integer
For I = 0 To NavBarControl1.Groups.Count - 1
   Dim CurrGroup As NavBarGroup = NavBarControl1.Groups(I)
   CurrGroup.Hint = CurrGroup.Caption
Next
NavBarControl1.ShowGroupHint = True

See Also

Hint

GetHint

NavBarControl Class

NavBarControl Members

DevExpress.XtraNavBar Namespace