Skip to main content

TdxLayoutSizeOptions.Height Property

Specifies the layout element’s height, in pixels.

Declaration

property Height: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

Use this property to set the preferred height for a layout element. The Height property value depends on the following conditions:

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

  • The height of nested layout elements proportionally adjusts according to the height of the parent container whose LayoutDirection property is set to ldVertical, and the AlignVert property of the nested layout elements is set to ahClient.

If the Height property is set to 0, the layout element’s height is calculated automatically. In this case, you can use the MaxHeight property to limit the maximum layout element height.

Note

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

The Height property’s default value is 0.

See Also