Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutControlItem.ContentVisible Property

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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.

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