Click or drag to resize

ArcadeLabelExpression Class

An expression script using the Arcade language.
Inheritance Hierarchy
SystemObject
  Esri.ArcGISRuntime.Mapping.LabelingLabelExpression
    Esri.ArcGISRuntime.Mapping.LabelingArcadeLabelExpression

Namespace:  Esri.ArcGISRuntime.Mapping.Labeling
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
Syntax
public class ArcadeLabelExpression : LabelExpression

The ArcadeLabelExpression type exposes the following members.

Constructors
  NameDescription
Public methodArcadeLabelExpression
Initializes a new instance of the ArcadeLabelExpression class with an empty expression script.
Public methodArcadeLabelExpression(String)
Initializes a new instance of the ArcadeLabelExpression class with a specified Arcade expression script.
Public methodArcadeLabelExpression(ArcadeExpression)
Initializes a new instance of the ArcadeLabelExpression class with a specified ArcadeExpression.
Top
Properties
  NameDescription
Public propertyExpression
Gets or sets the label expression script string.
(Inherited from LabelExpression.)
Top
Remarks

The label arcade expression expects to hold a legal, Arcade script and to be read and evaluated by an Arcade expression interpreter. An example expression that combines text with a field value is "State: " + $feature.State_Name.

Note that quotes are needed around the literal text. See https://developers.arcgis.com/arcade/ for full documentation on the Arcade scripting language and its function library.

Any Arcade functions allowed for the Labeling profile can be used in a label arcade expression. Other functions (for example, FeatureSet functions) are potentially too slow to be used in a dynamic label evaluation.

See Also