LayoutGridGetSpanMode

Syntax

ColumnSpanMode = LayoutGridGetSpanMode(Layout, *Columns.Integer=#Null, *Rows.Integer=#Null)

Description

Retrieves the sizing mode used for handling items that span multiple columns or rows in a Grid layout.

Parameters

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

*Columns.Integer (optional)
A pointer to an integer variable that will receive the span mode used for columns.

*Rows.Integer (optional)
A pointer to an integer variable that will receive the span mode used for rows.

Return Value

Returns the span mode for columns as an Integer constant:

#PG_Grid_SpanMode_Tight
#PG_Grid_SpanMode_Even

Returns #False (0) if the layout handle is invalid or if the layout is not of type Grid. The row span mode is returned via the optional pointer.

See Also

LayoutSetType, LayoutGridSetSpanMode, LayoutGridGetSpanModeColumns, LayoutGridGetSpanModeRows

Supported OS

Windows, Linux