Show / Hide Table of Contents

Class ArcadeLabelExpression

An expression script using the Arcade language.

Inheritance
Object
LabelExpression
ArcadeLabelExpression
LabelExpression.Expression
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping.Labeling
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class ArcadeLabelExpression : LabelExpression
Remarks

The Arcade label expression property must contain a syntactically correct Arcade script expression. 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.

Constructors

Name Description
ArcadeLabelExpression()

Initializes a new instance of the ArcadeLabelExpression class with an empty expression script.

ArcadeLabelExpression(ArcadeExpression)

Initializes a new instance of the ArcadeLabelExpression class with a specified ArcadeExpression.

ArcadeLabelExpression(String)

Initializes a new instance of the ArcadeLabelExpression class with a specified Arcade expression script.

Applies to

TargetVersions
.NET Standard 2.0100.11 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.11 - 100.15
.NET 5100.11 - 100.12
.NET Core 3.1100.11 - 100.12
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 100.15
In This Article
Back to top Copyright © 2022 Esri.