LayoutGridSetSpanModeRows

Syntax

Success = LayoutGridSetSpanModeRows(Layout, SpanMode)

Description

Sets the sizing mode specifically for handling items that span multiple rows in a Grid layout.

Parameters

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

SpanMode
The span sizing mode constant for rows.

#PG_Grid_SpanMode_Tight : (default) Spanned items' content size requirements are distributed primarily to flexible tracks within their span first.
#PG_Grid_SpanMode_Even : Spanned items' content size requirements are distributed evenly among all tracks within their span.

Return Value

Returns #True if the row span mode was successfully set, or #False if the layout handle or mode was invalid.

Remarks

This property only applies to layouts whose type is #PG_Layout_Type_Grid. It allows fine-grained control over row sizing when items span across multiple rows.

See Also

LayoutSetType, LayoutGridGetSpanModeRows, LayoutGridSetSpanMode, LayoutGridSetSpanModeColumns, WidgetSetRowSpan

Supported OS

Windows, Linux