enum TextFlag : System.Enum

robot_2Generated
code_blocksInput

Description

The TextFlag enumeration in the Sandbox namespace is used to specify the alignment and positioning of text and other elements. It is marked with the FlagsAttribute, allowing for a combination of values. The default alignment is Top and Left. Combining conflicting values may result in undefined behavior.

Members

Static Fields

Member NameSummary
NoneNo alignment specified.
LeftAlign to the left on the X axis.
RightAlign to the right on the X axis.
CenterHorizontallyAlign in the center on the X axis.
JustifyJustify text alignment.
AbsoluteUse absolute positioning.
TopAnchor to the top on the Y axis.
BottomAnchor to the bottom on the Y axis.
CenterVerticallyAlign in the center on the Y axis.
LeftTopAnchor to the top left corner.
LeftCenterAnchor to the left side, center vertically.
LeftBottomAnchor to the bottom left corner.
CenterTopAnchor to the top side, center horizontally.
CenterAlign in the center on both axises.
CenterBottomAnchor to the bottom side, center horizontally.
RightTopAnchor to the top right corner.
RightCenterAnchor to the right side, center vertically.
RightBottomAnchor to the bottom right corner.
SingleLineLimit the text to a single line. Used in Graphics.DrawText and Graphics.MeasureText.
DontClipDo not cutoff text beyond its bounds. Used in Graphics.DrawText and Graphics.MeasureText.
WordWrapEnable word wrapping.
WrapAnywhereAllow wrapping at any character.