Show / Hide Table of Contents

Class SimpleLabelExpression

An expression script using the Simple REST language.

Inheritance
System.Object
LabelExpression
SimpleLabelExpression
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)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping.Labeling
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class SimpleLabelExpression : LabelExpression
Remarks

The label Simple expression expects to hold a legal, Simple script and to be read and evaluated by a Simple expression interpreter. An example expression that combines text with a field value is: "State: " CONCAT [State_Name].

Note that quotes are needed around the literal text. See https://developers.arcgis.com/documentation/common-data-types/labeling-objects.htm for full documentation on the labelExpression syntax and functions.

Warning: If the expression attempts to use attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.

Constructors

Name Description
SimpleLabelExpression()

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

SimpleLabelExpression(String)

Initializes a new instance of the SimpleLabelExpression class with a specified Simple expression script.

Applies to

TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7
In This Article
Back to top Copyright © 2022 Esri.