FGX.Layout.Types.TfgChildrenAlignment

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску

Delphi

TfgChildrenAlignment = class (TfgPersistent)

Описание

Настройки выравнивания дочерних контролов

Конструкторы

constructor
Create(AOwner: TPersistent)

Методы

function
ToString(): string

Свойства

property
DefaultDirection: TfgFlexDirection
property
Direction: TfgFlexDirection

The The property controls the direction in which children are laid out.

introduces another important aspect of Flexbox, the main and cross axes. This is important as other properties will reference which axis they operate on. Simply put, the main axis follows the introduces another important aspect of Flexbox, the main and cross axes. This is important as other properties will reference which axis they operate on. Simply put, the main axis follows the and the cross axis crosses the main axis at a 90 degree angle.

property
Wrap: TfgFlexWrap

property is set on containers and controls what happens when children overflow the size of the container along the main axis (see property is set on containers and controls what happens when children overflow the size of the container along the main axis (see property).

If a container specifies If a container specifies then its children will wrap to the next line instead of overflowing. The next line will have the same then its children will wrap to the next line instead of overflowing. The next line will have the same as the first line and will appear next to the first line along the cross axis – below it if using as the first line and will appear next to the first line along the cross axis – below it if using and to the right if using and to the right if using .

property
JustifyContent: TfgJustifyContent

The The property describes how to align children within the main axis of a container.

For example, you can use this property to center a child horizontally within a container with For example, you can use this property to center a child horizontally within a container with or vertically within a container with or vertically within a container with .

property
AlignItems: TfgAlignItems

The The property describes how to align children along the cross axis of their container. property describes how to align children along the cross axis of their container. is very similar to is very similar to but instead of applying to the main axis, it applies to the cross axis.

The only non-obvious option of the four is The only non-obvious option of the four is . With . With you instruct children to match the size of their container in the cross axis.

property
AlignContent: TfgAlignContent

The The property is used to control how multiple lines of content are aligned within a container which uses property is used to control how multiple lines of content are aligned within a container which uses .

Константы

const
DefaultDefaultDirection: TfgFlexDirection
const
DefaultWrap: TfgFlexWrap
const
DefaultJustifyContent: TfgJustifyContent
const
DefaultAlignItems: TfgAlignItems
const
DefaultAlignContent: TfgAlignContent