FGX.Control.Types.TfgSize: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
Строка 41: Строка 41:
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SaveSize()</code>
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <code lang="Delphi">SaveSize()</code>
  
 +
|}
 +
 +
== Свойства ==
 +
 +
{| class="wikitable sortable"
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>SavedSize: [[TSizeF]]</code>
 +
Сохраненный размер контрола. Хранит размер контрола до выравнивания.
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AspectRationAsSingle: [[Single]]</code>
 +
 +
|-
 +
| <syntaxhighlight lang="Delphi">property</syntaxhighlight> || <code>AspectRatio: [[string]]</code>
 +
AspectRatio is a property introduced by Yoga and is not present as a settable property in the css flexbox specification. Flexbox does has the notion of aspect ratio though for things with intrinsic aspect ratio such as images.
 
|}
 
|}

Версия 04:48, 10 июня 2019

Delphi

TfgSize = class (TfgSingleSize)

Описание

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

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

constructor
Create(AOwner: TPersistent)

Методы

function
HasAspectRation(): Boolean
function
AreDefaultValues(): Boolean
procedure
StoreWidth()
procedure
RestoreWidth()
procedure
StoreHeight()
procedure
RestoreHeight()
procedure
SaveSize()

Свойства

property
SavedSize: TSizeF

Сохраненный размер контрола. Хранит размер контрола до выравнивания.

property
AspectRationAsSingle: Single
property
AspectRatio: string

AspectRatio is a property introduced by Yoga and is not present as a settable property in the css flexbox specification. Flexbox does has the notion of aspect ratio though for things with intrinsic aspect ratio such as images.