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. | 
| 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 - 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 |