An Anchor is a pre-defined position in parent entity that we use to position a child.
For eample, we can use anchors to position an entity at the bottom-center point of its parent.
Note: anchor affect both the position relative to parent and also the offset origin point of the entity.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax Members
| Member name | Value | Description |
---|
| Center | 0 | Center of parent element. |
| TopLeft | 1 | Top-Left corner of parent element. |
| TopRight | 2 | Top-Right corner of parent element. |
| TopCenter | 3 | Top-Center of parent element. |
| BottomLeft | 4 | Bottom-Left corner of parent element. |
| BottomRight | 5 | Bottom-Right corner of parent element. |
| BottomCenter | 6 | Bottom-Center of parent element. |
| CenterLeft | 7 | Center-Left of parent element. |
| CenterRight | 8 | Center-Right of parent element. |
| Auto | 9 | Automatically position this entity below its older sibling. |
| AutoInline | 10 | Automatically position this entity to the right side of its older sibling, and begin a new row whenever
exceeding the parent container width. |
| AutoInlineNoBreak | 11 | Automatically position this entity to the right side of its older sibling, even if exceeding parent container width. |
| AutoCenter | 12 | Position of the older sibling bottom, eg align this entity based on its older sibling, but center on X axis.
Use this property to place entities one after another but keep them aligned to center (especially paragraphs). |
See Also