Anchor Enumeration

GeonBit.UI

Anchor Enumeration
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
C#
public enum Anchor
Members
  Member nameValueDescription
Center0Center of parent element.
TopLeft1Top-Left corner of parent element.
TopRight2Top-Right corner of parent element.
TopCenter3Top-Center of parent element.
BottomLeft4Bottom-Left corner of parent element.
BottomRight5Bottom-Right corner of parent element.
BottomCenter6Bottom-Center of parent element.
CenterLeft7Center-Left of parent element.
CenterRight8Center-Right of parent element.
Auto9Position of the older sibling bottom, eg align this entity based on its older sibling. Use this property to place entities one after another.
AutoInline10Position of the older sibling right side, or below it if not enough room in parent. In other words, this will try to put together entities on the same row until overflow parent width, in which case will go row down. Use this property to place entities one after another in the same row.
AutoCenter11Position 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