Back to Devexpress

LayoutControlItem.ControlAlignment Property

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

latest2.7 KB
Original Source

LayoutControlItem.ControlAlignment Property

Gets or sets the alignment of the LayoutControlItem‘s control within the layout item. 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)]
[DXCategory("Layout")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public virtual ContentAlignment ControlAlignment { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<XtraSerializableProperty>
<DXCategory("Layout")>
Public Overridable Property ControlAlignment As ContentAlignment

Property Value

TypeDefaultDescription
ContentAlignmentTopLeft

A ContentAlignment value that specifies the control’s alignment within the layout item.

|

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

SizeConstraintsType

FillControlToClientArea

TrimClientAreaToControl

Size and Alignment

LayoutControlItem Class

LayoutControlItem Members

DevExpress.XtraLayout Namespace