LayoutGridSetRowMaxDefault

Syntax

Success = LayoutGridSetRowMaxDefault(Layout, Size.d)

Description

Sets the default maximum template size (max-height) used for grid rows that are not explicitly defined using LayoutGridSetRowMax().

Parameters

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

Size.d
The default maximum size for rows. Can be:

  • A specific value (DIPs).
  • #PG_Grid_MaxContent: The default maximum size is the intrinsic max-content size of items in the row.
  • #Null or 0: No default maximum size (Initial Default).

Return Value

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

Remarks

This property only applies to layouts whose type is #PG_Layout_Type_Grid. It provides a fallback maximum size constraint for rows beyond the explicitly defined grid template or for items placed in rows without an explicit maximum template definition.

See Also

LayoutSetType, LayoutGridGetRowMaxDefault, LayoutGridSetRowMax, LayoutGridSetRowDefault, LayoutGridSetRowMinDefault, LayoutGridSetColumnMaxDefault

Supported OS

Windows, Linux