Back to Devexpress

TdxCustomLayoutItem.AlignHorz Property

vcl-dxlayoutcontainer-dot-tdxcustomlayoutitem.md

latest1.8 KB
Original Source

TdxCustomLayoutItem.AlignHorz Property

Specifies the horizontal alignment of an item/group within its parent group.

Declaration

delphi
property AlignHorz: TdxLayoutAlignHorz read; write;

Property Value

Type
TdxLayoutAlignHorz

Remarks

Options include:

ValueDescriptionExample
ahLeftAn item/group is aligned to the left of its parent group.
ahCenterAn item/group is centered within its parent group.
ahRightAn item/group is aligned to the right of its parent group.
ahClientAn item/group occupies as much of its parent group client width as it can.
ahParentManagedAn alignment is performed by the parent container, dependant upon the container’s layout settings (see the parent’s LayoutDirection property).

Note

You can place several items, whose AlignHorz property is set to ahClient , onto the layout control. These items will use as much space as they can, but all of them will be displayed.

The default value of this property is ahParentManaged.

See Also

TdxCustomLayoutControl.ApplyBestFit

TdxCustomLayoutItem.AlignVert

TdxCustomLayoutItem Class

TdxCustomLayoutItem Members

dxLayoutContainer Unit