All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

LayoutControlItem.ContentHorzAlignment Property

Gets or sets the horizontal alignment of a control inside this layout item. This property is in effect when the control's maximum width is limited, and is less than the layout item currently provides.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[DefaultValue(HorzAlignment.Default)]
[DXCategory("Layout")]
[XtraSerializableProperty]
public virtual HorzAlignment ContentHorzAlignment { get; set; }
<DefaultValue(HorzAlignment.Default)>
<DXCategory("Layout")>
<XtraSerializableProperty>
Public Overridable Property ContentHorzAlignment As HorzAlignment

Property Value

Type Default Description
HorzAlignment

Default

The horizontal control alignment.

Remarks

If a layout item is stretched horizontally, and the control inside this item has a limited maximum width, the control area can be wider than this maximum value. In this case, you can use the ContentHorzAlignment property to move the control inside its layout item.

To move a control vertically, use the ContentVertAlignment property instead.

See Also