Constructor LabelDefinition
LabelDefinition(LabelExpression, TextSymbol)
Initializes a new instance of the LabelDefinition class with the specified LabelExpression and TextSymbol.
Declaration
public LabelDefinition(LabelExpression labelExpression, TextSymbol textSymbol)
Parameters
Type | Name | Description |
---|---|---|
LabelExpression | labelExpression | The expression script used to calculate the label text. The expression may be a combination of
literal text and attribute values from the feature being labeled. The syntax of the expression
is determined by which label expression object is used: ArcadeLabelExpression,
SimpleLabelExpression or WebmapLabelExpression.
Warning: If the expression attempts to use attributes which don't exist then no label will be produced.
This is distinct from the attribute existing but having a |
TextSymbol | textSymbol | The text symbol which describes the overall appearance of label text (e.g. font and size). If no TextSymbol has been set, then no labels can be created. |
Remarks
This LabelDefinition will not create any labels until it has a TextSymbol and a non-empty Expression.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.11 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.11 - 200.5 |
Xamarin.Android | 100.11 - 100.15 |
Xamarin.iOS | 100.11 - 100.15 |
UWP | 100.11 - 200.5 |