FGX.Layout.Types.TfgChildrenAlignment

From FGX Native Докуметация
Jump to navigation Jump to search

Delphi

TfgChildrenAlignment = class (TfgPersistent)

TPersistent -> TfgPersistent -> TfgChildrenAlignment

Описание

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

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

constructor
Create(AOwner: TPersistent)

Описание отсутствует.

Методы

function
ToString(): string

Описание отсутствует.

Свойства

property
DefaultDirection: TfgFlexDirection

Описание отсутствует.

property
Direction: TfgFlexDirection

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

Direction 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 Direction and the cross axis crosses the main axis at a 90 degree angle.

property
Wrap: TfgFlexWrap

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

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

property
JustifyContent: TfgJustifyContent

The JustifyContent 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 Direction = Row or vertically within a container with Direction = Column .

property
AlignItems: TfgAlignItems

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

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

property
AlignContent: TfgAlignContent

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

Константы

const
DefaultDefaultDirection: TfgFlexDirection

Описание отсутствует.

const
DefaultWrap: TfgFlexWrap

Описание отсутствует.

const
DefaultJustifyContent: TfgJustifyContent

Описание отсутствует.

const
DefaultAlignItems: TfgAlignItems

Описание отсутствует.

const
DefaultAlignContent: TfgAlignContent

Описание отсутствует.