dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
LabelExpressionInfo Class
Defines the labels for a FeatureLayer.
default null
ArcGIS Maps SDK for JavaScript
public class LabelExpressionInfo : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 LabelExpressionInfo
Constructors
LabelExpressionInfo() Constructor
Parameterless constructor for use as a Razor Component.
public LabelExpressionInfo();
LabelExpressionInfo(string, string) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public LabelExpressionInfo(string expression, string? title=null);
Parameters
expression
System.String
An Arcade expression following the specification defined by the Arcade Labeling Profile.
ArcGIS Maps SDK for JavaScript
title
System.String
The title of the label expression.
ArcGIS Maps SDK for JavaScript
Properties
LabelExpressionInfo.Expression Property
An Arcade expression following the specification defined by the Arcade Labeling Profile. Expressions in labels may reference field values using the $feature global variable and must return a string.
public string Expression { get; set; }
Property Value
LabelExpressionInfo.Title Property
The title of the label expression.
ArcGIS Maps SDK for JavaScript
public string? Title { get; set; }
Property Value
Methods
LabelExpressionInfo.GetExpression() Method
Asynchronously retrieve the current value of the Expression property.
public System.Threading.Tasks.Task<string?> GetExpression();
Returns
System.Threading.Tasks.Task<System.String>
LabelExpressionInfo.GetTitle() Method
Asynchronously retrieve the current value of the Title property.
public System.Threading.Tasks.Task<string?> GetTitle();
Returns
System.Threading.Tasks.Task<System.String>
LabelExpressionInfo.SetExpression(string) Method
Asynchronously set the value of the Expression property after render.
public System.Threading.Tasks.Task SetExpression(string value);
Parameters
value
System.String
The value to set.
Returns
LabelExpressionInfo.SetTitle(string) Method
Asynchronously set the value of the Title property after render.
public System.Threading.Tasks.Task SetTitle(string? value);
Parameters
value
System.String
The value to set.