Back to Devexpress

LayoutControlItem.ContentVisible Property

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolitem-9994b655.md

latest2.5 KB
Original Source

LayoutControlItem.ContentVisible Property

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

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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

Visibility

HideToCustomization()

LayoutControlItem Class

LayoutControlItem Members

DevExpress.XtraLayout Namespace