FMX.Types.AnchorAlign

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

AnchorAlign: array [TAlignLayout] of TAnchors = (
{ TAlignLayout.None }
[TAnchorKind.akLeft,
TAnchorKind.akTop],
{ TAlignLayout.Top }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight],
{ TAlignLayout.Left }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akBottom],
{ TAlignLayout.Right }
[TAnchorKind.akRight,
TAnchorKind.akTop,
TAnchorKind.akBottom],
{ TAlignLayout.Bottom }
[TAnchorKind.akLeft,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.MostTop }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight],
{ TAlignLayout.MostBottom }
[TAnchorKind.akLeft,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.MostLeft }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akBottom],
{ TAlignLayout.MostRight }
[TAnchorKind.akRight,
TAnchorKind.akTop,
TAnchorKind.akBottom],
{ TAlignLayout.Client }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.Contents }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.Center }
[],
{ TAlignLayout.VertCenter }
[TAnchorKind.akLeft,
TAnchorKind.akRight],
{ TAlignLayout.HorzCenter }
[TAnchorKind.akTop,
TAnchorKind.akBottom],
{ vaHorizintal }
[TAnchorKind.akLeft,
TAnchorKind.akRight],
{ TAlignLayout.Vertical }
[TAnchorKind.akTop,
TAnchorKind.akBottom],
{ TAlignLayout.Scale }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.Fit }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.FitLeft }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom],
{ TAlignLayout.FitRight }
[TAnchorKind.akLeft,
TAnchorKind.akTop,
TAnchorKind.akRight,
TAnchorKind.akBottom]
);

C++

extern DELPHI_PACKAGE System::StaticArray<System::Uitypes::TAnchors, 20> AnchorAlign;

Propriétés

Type Visibilité  Source Unité  Parent
variable public
FMX.Types.pas
FMX.Types.hpp
FMX.Types FMX.Types

Description

Variable représentant un tableau de TAnchors.

AnchorAlign est initialisée avec un tableau contenant toutes les déclarations de tous les modes d'alignement possibles (None, Top, Left, et ainsi de suite), comme suit :

 (
     { None }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop],
 
     { Top }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight],
 
     { Left }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { Right }
     [TAnchorKind.akRight,
      TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { Bottom }
     [TAnchorKind.akLeft,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { MostTop }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight],
 
     { MostBottom }
     [TAnchorKind.akLeft,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { MostLeft }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { MostRight }
     [TAnchorKind.akRight,
      TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { Client }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { Contents }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { Center }
     [],
 
     { VertCenter }
     [TAnchorKind.akLeft,
      TAnchorKind.akRight],
 
     { HorzCenter }
     [TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { vaHorizintal }
     [TAnchorKind.akLeft,
      TAnchorKind.akRight],
 
     { Vertical }
     [TAnchorKind.akTop,
      TAnchorKind.akBottom],
 
     { Scale }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { Fit }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { FitLeft }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom],
 
     { FitRight }
     [TAnchorKind.akLeft,
      TAnchorKind.akTop,
      TAnchorKind.akRight,
      TAnchorKind.akBottom]
   );

AnchorAlign est utilisée en interne pour les procédures d'alignement.

Voir aussi