Class ContentLayout2D

Class Hierarchy

Use the Content Layout 2D node to present content in a 2D UI control as a single item. You can use the Content Layout 2D node to create a control that adapts to the size of its content, or a control where the content adapts to the size of the control.

Dimensions of the Content Layout 2D The width and height of the Content Layout 2D are determined by the combined maximum width and height of its items.

Kanzi omits the unbounded dimensions of the items in a Content Layout 2D when measuring the size of the Content Layout 2D.

Arranging the items in a Content Layout 2D In the arrange phase, all items in a Content Layout 2D receive the allocated size that is the actual size of the layout.

To align the items in a Content Layout 2D node, set in those items the Node::HorizontalAlignmentProperty and Node::VerticalAlignmentProperty.

Setting the content padding To add space between the content and boundaries of a Content Layout 2D node, use the HorizontalPaddingProperty and VerticalPaddingProperty.

See also
Since Kanzi 3.9.0

Use a Content Layout 2D node to present content in a 2D UI control as a single item.

Inherits properties and message types from ContentLayout2DMetadata.

Synopsis

Methods
create()

Creates a Content Layout 2D node

ContentLayout2D.ContentLayout2D:create(name)

Creates a Content Layout 2D node.

Parameters
name (string)

The name of the node.

Return Values
(ContentLayout2D)

The created node.