Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxLayoutSizeOptions.Width Property

Specifies the preferred width of a layout element, in pixels.

#Declaration

Delphi
property Width: Integer read; write; default 0;

#Property Value

Type Default
Integer 0

#Remarks

Use this property to set the preferred width for a layout element. The Width property value 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 avClient.

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

Note

The Width property’s setter also assigns the same value to the layout element’s Width property.

The Width property’s default value is 0.

See Also