Vcl.Controls.TAnchors
Delphi
TAnchors = System.UITypes.TAnchors;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
set | public | Vcl.Controls.pas | Vcl.Controls | Vcl.Controls |
Description
TAnchors is the set of control anchor values.
Anchors are used to ensure that a control maintains its current position relative to an edge of its parent, even if the parent is resized. When its parent is resized, the control holds its position relative to the edges to which it is anchored.
TAnchors is a set of TAnchorKind values. TAnchorKind can have one or more of the following values:
Value | Meaning |
---|---|
akTop |
The control's position is fixed with respect to the top edge of its parent. |
akLeft |
The control's position is fixed with respect to the left edge of its parent. |
akRight |
The control's position is fixed with respect to the right edge of its parent. |
akBottom |
The control's position is fixed with respect to the bottom edge of its parent. |
Set different TAnchorKind values on to influence how a control adjusts when its parent is resized.