LayoutControlItem.ContentVisible Property

Gets or sets whether the layout item's contents are visible.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
[DXCategory("Behavior")]
public virtual bool ContentVisible { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
<DXCategory("Behavior")>
Public Overridable Property ContentVisible As Boolean

Property Value

Type Default Description
Boolean

true

true if the layout item's contents are visible; otherwise, false.

Remarks

The Layout Control manages the visibility of controls embedded in layout items. Do not use an embedded control's Visible property to specify its visibility. If you wish to hide a layout item or its control, use the item's properties and methods instead.

The ContentVisible property specifies the visibility of the item's contents (embedded control, text label, and image). When you hide the item's contents, the item retains its size and position. It is displayed as an empty rectangle.

For more information on how you can control the visibility of layout items, see the following help topic: BaseLayoutItem.Visibility.

See Also