TextAlignments Enumerator

Description

Horizontal and vertical alignment of text relative to its anchor point.


Defined in namespace "adsk::electron" and the header file is <Electron\ElectronTypeDefs.h>

Values

Name Value Description
BottomCenterTextAlignment 1 Text aligned to the bottom-center.
BottomLeftTextAlignment 0 Text aligned to the bottom-left corner.
BottomRightTextAlignment 2 Text aligned to the bottom-right corner.
CenterLeftTextAlignment 3 Text aligned to the center-left.
CenterRightTextAlignment 5 Text aligned to the center-right.
CenterTextAlignment 4 Text centered both horizontally and vertically.
TopCenterTextAlignment 7 Text aligned to the top-center.
TopLeftTextAlignment 6 Text aligned to the top-left corner.
TopRightTextAlignment 8 Text aligned to the top-right corner.

Version

Introduced in version May 2026