Skip to content

TextAnchor

The TextAnchor enumeration is used to define the anchor point of text in UI elements.

attributesdescription
UpperLeftRepresents the anchor point at the top left corner of the text.
UpperCenterAnchors the text to the center of the top edge.
UpperRightRepresents the anchor point at the top right corner of the text.
MiddleLeftRepresents the anchor point at the left edge center of the text.
MiddleCenterRepresents the anchor point of the text center.
MiddleRightRepresents the anchor point at the center of the right edge of the text.
LowerLeftRepresents the anchor point at the bottom left corner of the text.
LowerCenterRepresents the anchor point at the center of the bottom edge of the text.
LowerRightRepresents the anchor point at the bottom right corner of the text.