Show / Hide Table of Contents

Property Priority

Priority

Gets or sets a number that defines which labels are placed first, and can also supplant existing lower-priority labels (e.g. during panning).

Declaration
public double Priority { get; set; }
Property Value
Type Description
System.Double

A number that defines which labels are placed first, and can also supplant existing lower-priority labels (e.g. during panning).

Remarks

Lower values indicate more important labels i.e.

  • 0 is the most important.
  • 5 is high priority.
  • 15 is medium priority.
  • Higher values indicate lower priority.

If set to -1 or not set at all, then default values are used, depending on the geometry types of the features:

  • 12 for point features.
  • 15 for line features.
  • 18 for polygon features.

This value does not have to be an integer because it is just a continuum of values for comparison. Users can use this to specify that a class of labels should have priority between two other classes with close priorities.

For example, PreferredRoutes might be given priority 13 to appear ahead of general line feature labels, but after general point feature labels. And HistoricSites might be given priority 12.5 to appear ahead of PreferredRoute labels, but still after general point feature labels.

Applies to

Platforms and versions
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.