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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.11 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.11 - 100.15 |
.NET 5 | 100.11 - 100.12 |
.NET Core 3.1 | 100.11 - 100.12 |
Xamarin.Android | 100.11 - 100.15 |
Xamarin.iOS | 100.11 - 100.15 |
UWP | 100.11 - 100.15 |