Back to Devexpress

NavBarControl.ShowIcons Property

windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol-0ec3846b.md

latest2.4 KB
Original Source

NavBarControl.ShowIcons Property

Gets or sets whether link icons are shown.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public DefaultBoolean ShowIcons { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Appearance")>
Public Property ShowIcons As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

A DefaultBoolean enumeration value that specifies whether link icons are shown.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

By default, if an icon is assigned to a NavBarItem, it is automatically shown next to the item caption. Use the ShowIcons property to specify whether icons assigned to items in the current NavBarControl are shown. The Default value assigned to this property is True. Set the ShowIcons property to False to hide icons for all items in all groups of the current NavBarControl. You can also override this setting for a particular group via the NavBarGroup.ShowIcons property.

To assign an icon to an item, you can use the NavElement.ImageOptions property.

See Also

ShowIcons

NavBarControl Class

NavBarControl Members

DevExpress.XtraNavBar Namespace