FGX.Control.Types.TfgControlAlignment: различия между версиями
Admin (обсуждение | вклад) (summary) |
Admin (обсуждение | вклад) (summary) |
||
Строка 54: | Строка 54: | ||
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Direction: [[.TfgControlLayoutDirection|TfgControlLayoutDirection]]</code> | | <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>Direction: [[.TfgControlLayoutDirection|TfgControlLayoutDirection]]</code> | ||
Направление выравнивания контрола для разных направлений правописаний языков. | Направление выравнивания контрола для разных направлений правописаний языков. | ||
+ | |} | ||
+ | |||
+ | == Константы == | ||
+ | |||
+ | {| class="wikitable sortable" | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultAlignSelf: [[.TfgAlignSelf|TfgAlignSelf]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexGrow: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexShrink: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultFlexBasis: [[Comp]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
+ | |- | ||
+ | | <syntaxhighlight lang="Delphi">const</syntaxhighlight> || <code>DefaultDirection: [[.TfgControlLayoutDirection|TfgControlLayoutDirection]]</code> | ||
+ | <span style="color:gray">Описание отсутствует.</span> | ||
|} | |} |
Версия 23:25, 11 июня 2019
Delphi
TfgControlAlignment = class (TfgPersistent)
Содержание
Описание
Настройки выравнивания контрола в родительском контейнере.
Конструкторы
constructor
|
Create(AOwner: TPersistent)
Описание отсутствует. |
Методы
function
|
AreDefaultValues(): Boolean
Описание отсутствует. |
function
|
ToString(): string
Описание отсутствует. |
Свойства
property
|
AlignSelf: TfgAlignSelf
The The property has the same options and effect as property has the same options and effect as but instead of affecting the children within a container, you can apply this property to a single child to change its alignment within its parent. This property overrides any option set by the parent via the This property overrides any option set by the parent via the property. |
property
|
FlexGrow: Single
The property describes how any space within a container should be distributed among its children along the main axis. After laying out its children, a container will distribute any remaining space according to the The property describes how any space within a container should be distributed among its children along the main axis. After laying out its children, a container will distribute any remaining space according to the values specified by its children. accepts any floating point value >= 0, with 0 being the default value. A container will distribute any remaining space among its children weighted by the child’s accepts any floating point value >= 0, with 0 being the default value. A container will distribute any remaining space among its children weighted by the child’s value. |
property
|
FlexShrink: Single
The property describes how to shrink children along the main axis in the case that the total size of the children overflow the size of the container on the main axis. is very similar to is very similar to and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed. accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the child’s accepts any floating point value >= 0, with 0 being the default value. A container will shrink its children weighted by the child’s value. |
property
|
FlexBasis: Single
The FlexBasis property is an axis-independent way of providing the default size of an item on the main axis. Setting the FlexBasis of a child is similar to setting the Width of that child if its parent is a container with FlexDirection = row or setting the Height of a child if its parent is a container with FlexDirection = column. The FlexBasis of an item is the default size of that item, the size of the item before any FlexGrow and FlexShrink calculations are performed. |
property
|
Direction: TfgControlLayoutDirection
Направление выравнивания контрола для разных направлений правописаний языков. |
Константы
const
|
DefaultAlignSelf: TfgAlignSelf
Описание отсутствует. |
const
|
DefaultFlexGrow: Comp
Описание отсутствует. |
const
|
DefaultFlexShrink: Comp
Описание отсутствует. |
const
|
DefaultFlexBasis: Comp
Описание отсутствует. |
const
|
DefaultDirection: TfgControlLayoutDirection
Описание отсутствует. |