Bar

BarItem.Visibility Property

Specifies when the item is visible.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DefaultValue(BarItemVisibility.Always)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public virtual BarItemVisibility Visibility { get; set; }
<DefaultValue(BarItemVisibility.Always)>
<DXCategory("Behavior")>
<XtraSerializableProperty>
Public Overridable Property Visibility As BarItemVisibility

Property Value

Type Default Description
BarItemVisibility

Always

A BarItemVisibility enumeration value that specifies the visibility of this item.

Remarks

This property specifies the item visibility depending on whether the customization window is open. This property is not in effect at design time.

barButtonItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
See Also