Back to Devexpress

LayoutControlItem.TrimClientAreaToControl Property

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolitem-a97b87ba.md

latest2.5 KB
Original Source

LayoutControlItem.TrimClientAreaToControl Property

Gets or sets whether the client region’s height is trimmed to match the control’s height. This setting is not intended to be used for version 19.2 and newer.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(true)]
[DXCategory("Layout")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public virtual bool TrimClientAreaToControl { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(True)>
<DXCategory("Layout")>
<XtraSerializableProperty>
Public Overridable Property TrimClientAreaToControl As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the client region’s height is trimmed to match the control’s height; otherwise, false.

|

Remarks

Important

For version 19.2 and newer, the ControlAlignment, TrimClientAreaToControl and FillControlToClientArea settings are hidden. To move a control inside a layout item, use the ContentVertAlignment and ContentHorzAlignment properties instead.

See Also

ContentHorzAlignment

ContentVertAlignment

Size and Alignment

LayoutControlItem Class

LayoutControlItem Members

DevExpress.XtraLayout Namespace