Back to Devexpress

TdxLayoutSizeOptions.MaxWidth Property

vcl-dxlayoutcontainer-dot-tdxlayoutsizeoptions.md

latest1.5 KB
Original Source

TdxLayoutSizeOptions.MaxWidth Property

Specifies the maximum width of a layout item, in pixels.

Declaration

delphi
property MaxWidth: Integer read; write; default 0;

Property Value

TypeDefault
Integer0

Remarks

Use the MaxHeight and MaxWidth properties to limit the Height and Width property values, respectively. If the MaxWidth property is set to 0 , the layout item’s width is limited only by its parent container’s width.

Note

The MaxWidth property value is ignored only if the following conditions are met:

  • The layout item is within a group whose LayoutDirection property is set to ldVertical.

  • The layout item’s AlignHorz property is set to avParentManaged or ahClient.

The MaxWidth property’s default value is 0.

See Also

TdxLayoutSizeOptions Class

TdxLayoutSizeOptions Members

dxLayoutContainer Unit