Skip to main content
A newer version of this page is available. .

LayoutControlItem.ControlAlignment Property

Gets or sets the alignment of the LayoutControlItem‘s control within the layout item.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v18.2.dll

Declaration

[DefaultValue(ContentAlignment.TopLeft)]
[XtraSerializableProperty]
[DXCategory("Layout")]
public virtual ContentAlignment ControlAlignment { get; set; }

Property Value

Type Default Description
ContentAlignment **TopLeft**

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

Remarks

A layout item’s total region consists of: (1) a region that displays the layout item’s caption and (2) a client area that displays its control. By default, the client area is totally occupied by the control, so the control’s alignment specified by the ControlAlignment property is ignored.

A control can be custom aligned if the client area’s size is larger than the control’s size. See Aligning Controls Within Layout Items, to learn how to align controls within layout items.

See Also