Enums.LabelStackAlignment enumeration

Multi-row text labels can each be horizontally aligned on the left, right or at their center. By using the Enums.LabelStackAlignment, the user can choose to use the TextSymbol::horizontalAlignment property for all labels, or can choose to have the most aesthetic alignment calculated case-by-case for each label depending on its placement position around its feature. This is particularly useful for labels of dense point features, where labels may move above, below, left or right of their point symbol, in order to fit on the display.

The LabelStackAlignment can be one of:

ConstantDescription
Enums.LabelStackAlignmentAutomatic(0) The default behavior is to use Enums.LabelStackAlignmentTextSymbol. This value corresponds to no value being specified for a LabelDefinition::stackAlignment property.
Enums.LabelStackAlignmentDynamic(1) Set the alignment depending upon the label's position with respect to its feature. Have the alignment decided case-by-case for each label depending on its placement position around its feature. This is particularly useful for labels of dense point features, where labels may move above, below, left or right of their point symbol, in order to fit on the display. For example, a stack to the right of a point symbol will be left-aligned.
Enums.LabelStackAlignmentTextSymbol(2) Follow the alignment specified by the TextSymbol::horizontalAlignment.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.