LayoutGridSetRowMax

Syntax

Success = LayoutGridSetRowMax(Layout, Index=#Null, Size.d=#PG_Grid_Default)

Description

Sets the maximum template size (max-height) for a specific row in a Grid layout. This acts as an upper bound for the row's calculated height.

Parameters

Layout
The handle of the Grid layout object. If #Null, it targets the current layout.

Index (optional)
The 1-based index of the row to modify. If #Null or 0, it targets the default maximum size for rows not explicitly defined.

Size.d (optional)
The maximum size for the row. Can be:

  • A specific value (DIPs).
  • #PG_Grid_MaxContent: The maximum size is the intrinsic max-content size of items in the row.
  • #PG_Grid_Default: Uses the layout's default maximum row size (LayoutGridSetRowMaxDefault()).

Return Value

Returns #True if the maximum row size was successfully set, or #False if the layout handle or parameters were invalid.

Remarks

This property only applies to layouts whose type is #PG_Layout_Type_Grid. It ensures that even if the row's template size (e.g., #PG_Grid_Auto, #PG_Grid_MaxContent, or a percentage) calculates to a larger value, the row will not grow beyond this maximum.

See Also

LayoutSetType, LayoutGridGetRowMax, LayoutGridSetRow, LayoutGridSetRowMin, LayoutGridSetRowMaxDefault

Supported OS

Windows, Linux