Syntax
Success = LayoutGridSetRowDefault(Layout, Size.d, isPercent.b=#False)Description
Sets the default template size used for grid rows that are not explicitly defined using LayoutGridSetRow().
Parameters
Layout
The handle of the Grid layout object. If #Null, it targets
the current layout.
Size.d
The default size for rows. Can be:
- A specific value (DIPs).
#PG_Grid_Auto: Default size is determined by any remaining available space evenly distributed amongst auto rows. (Initial Default)#PG_Grid_MaxContent: Default size is determined by the largest intrinsic max-content size of items in the row.
isPercent.b (optional)
If #True and Size is a numeric value, the size
is treated as a percentage of the layout container's height. Default is
#False.
Return Value
Returns #True if the default 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 size for rows
beyond the explicitly defined grid template or for items placed in rows
without an explicit template definition.
See Also
LayoutSetType, LayoutGridGetRowDefault, LayoutGridSetRow, LayoutGridSetRowMinDefault, LayoutGridSetRowMaxDefault, LayoutGridSetColumnDefault
Supported OS
Windows, Linux