Show / Hide Table of Contents

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