xtd 0.2.0
Loading...
Searching...
No Matches

◆ string_alignment

enum class xtd::drawing::string_alignment
strong

Specifies the alignment of a text string relative to its layout rectangle.

Namespace
xtd::drawing
Library
xtd.drawing
Remarks
When used with the line_alignment property, this enumeration sets the vertical alignment for a drawn string. When used with the alignment property, this enumeration sets the horizontal alignment.
Enumerator
near 

Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.

center 

Specifies that text is aligned in the center of the layout rectangle.

far 

Specifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.