LayoutControlItem.ContentVisible Property
Gets or sets whether the layout item’s contents are visible.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.2.dll
Declaration
[DefaultValue(true)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public virtual bool ContentVisible { get; set; }
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.
- ContentVisible
- BaseLayoutItem.Visibility
- BaseLayoutItem.HideToCustomization/BaseLayoutItem.RestoreFromCustomization
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.