Control.SizeFlags

Values

ValueMeaning
sizeFill1

Tells the parent Container to expand the bounds of this node to fill all the available space without pushing any other node. Use with sizeFlagsHorizontal and sizeFlagsVertical.

sizeExpand2

Tells the parent Container to let this node take all the available space on the axis you flag. If multiple neighboring nodes are set to expand, they'll share the space based on their stretch ratio. See sizeFlagsStretchRatio. Use with sizeFlagsHorizontal and sizeFlagsVertical.

sizeExpandFill3

Sets the node's size flags to both fill and expand. See the 2 constants above for more information.

sizeShrinkCenter4

Tells the parent Container to center the node in itself. It centers the control based on its bounding box, so it doesn't work with the fill or expand size flags. Use with sizeFlagsHorizontal and sizeFlagsVertical.

sizeShrinkEnd8

Tells the parent Container to align the node with its end, either the bottom or the right edge. It doesn't work with the fill or expand size flags. Use with sizeFlagsHorizontal and sizeFlagsVertical.

Meta