LabelStackAlignment

sealed class LabelStackAlignment

The strategy for how multi-row (stacked) text should be horizontally aligned. Multi-row text labels can each be horizontally aligned on the left, right or at their center. By using the LabelStackAlignment, the user can choose to use the com.arcgismaps.mapping.symbology.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.

Since

200.1.0

Inheritors

Types

Link copied to clipboard

The default behavior is to use LabelStackAlignment.TextSymbol. This value corresponds to no value being specified for a LabelDefinition.stackAlignment property.

Link copied to clipboard

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.

Link copied to clipboard