NavElement.Visible Property
Gets or sets a value specifying the visibility of the element.
Namespace: DevExpress.XtraNavBar
Assembly: DevExpress.XtraNavBar.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true if the element is visible; otherwise false. |
Example
The following sample code hides the item which corresponds to the second link of the second group. Note that if an item is hidden, all corresponding links become invisible.
The example below displays a NavBarControl control before and after sample code execution. Note that hiding an item results in hiding two links.
using DevExpress.XtraNavBar;
// ...
NavBarGroup group = navBarControl1.Groups[1];
NavBarItem item = group.ItemLinks[1].Item;
item.Visible = false;
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visible property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.