Show / Hide Table of Contents

Class LabelingInfo

Defines the text, appearance and position of labels for features for a given scale range.

Inheritance
Object
LabelingInfo
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.ArcGISServices
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class LabelingInfo
Remarks

A LabelingInfo describes a class of labels.

Each LabelingInfo specifies:

  • Which features are covered by the definition, by applying the Where SQL constraint.
  • What text should be displayed, based on the individual feature's attributes and the LabelExpression formula.
  • where the text should appear, with respect to its feature, using the LabelPlacement.

LabelingInfo describes a very limited subset of the LabelDefinition properties.

Properties

Name Description
LabelExpression

Gets the simple expression describing how to build the text label for a feature, often using attributes of the feature.

LabelPlacement

Gets the preferred position of the text label, with respect to its feature geometry.

MaxScale

Gets the largest viewing scale at which labels should be visible. If set, labels will disappear when the view is zoomed in beyond the maximum scale.

MinScale

Gets the smallest viewing scale at which labels should be visible. If set, labels will disappear when the view is zoomed out beyond the minimum scale.

UseCodedValues

Gets a value indicating whether label should use coded values.

Where

Gets the where clause used to filter which features will be labeled.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 100.15
In This Article
Back to top Copyright © 2022 Esri.