Click or drag to resize

LabelDefinitionExpression Property

Gets or sets the expression script used to calculate the label text.

Namespace:  Esri.ArcGISRuntime.Mapping
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public LabelExpression Expression { get; set; }

Property Value

Type: LabelExpression
Remarks

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 implementation is used: ArcadeLabelExpression, SimpleLabelExpression, or WebmapLabelExpression. A label expression using one scripting language can be replaced by an expression using a different scripting language just by creating an object of the new LabelExpression subclass and assigning it to Expression.

The default value is an empty ArcadeLabelExpression, which will evaluate to an empty text label.

See Also