LayoutFlexGetDirection

Syntax

Direction = LayoutFlexGetDirection(Layout)

Description

Retrieves the current main axis direction for a Flexbox layout container.

Parameters

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

Return Value

Returns one of the direction constants if successful:

#PG_Flex_Direction_Row
#PG_Flex_Direction_RowReverse
#PG_Flex_Direction_Column
#PG_Flex_Direction_ColumnReverse

Returns #False (0) if the layout handle is invalid or if the layout is not of type Flexbox.

See Also

LayoutSetType, LayoutFlexSetDirection

Supported OS

Windows, Linux