Show / Hide Table of Contents

Property StackAlignment

StackAlignment

Gets or sets the strategy for how multi-row (stacked) text should be aligned.

Declaration
public LabelStackAlignment StackAlignment { get; set; }
Property Value
Type Description
LabelStackAlignment

The strategy for how multi-row (stacked) text should be aligned.

Remarks

Multi-row text labels can be horizontally aligned on the left, on the right, or at its center. This preference can be specified by the TextSymbol assigned to the LabelDefinition. By using the StackAlignment property, the user can choose to use HorizontalAlignment of the TextSymbol 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.

This property has no effect if StackStrategy is None.

The default value is Automatic (which has the same effect on labels as TextSymbol).

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.11 - 200.0
.NET 5100.11 - 100.12
.NET Core 3.1100.11 - 100.12
Android100.11 - 100.15
iOS100.11 - 100.15
UWP100.11 - 200.0
In This Article
Back to top Copyright © 2022 Esri.