Skip to main content

TdxCustomLayoutItem.Width Property

Specifies the layout element’s width, in pixels.

Declaration

property Width: Integer read; write;

Property Value

Type
Integer

Remarks

The layout element width depends on the following conditions:

  • The layout element width cannot exceed the parent container’s width. The layout element’s width never exceeds the layout control’s content width.

  • The width of nested layout elements proportionally adjusts according to the width of the parent container whose LayoutDirection property is set to ldHorizontal, and the AlignHorz property of the nested layout elements is set to ahClient.

If the Width property is set to 0, the layout element’s width is calculated automatically. In this case, you can use the SizeOptions.MaxWidth property to limit the maximum layout element width.

Note

The Width property maps to the SizeOptions.Width property.

The Width property’s default value is 0.

See Also