Show / Hide Table of Contents

Class UniqueValueRenderer

A unique value renderer symbolizes geoelements with a distinct symbol for each unique data value in an attribute.

Inheritance
System.Object
Renderer
UniqueValueRenderer
Implements
System.ComponentModel.INotifyPropertyChanged
Renderer.RotationExpression
Renderer.RotationType
Renderer.SceneProperties
Renderer.UnknownJson
Renderer.UnsupportedJson
Renderer.FromJson(String)
Renderer.ToJson()
Renderer.GetSymbol(GeoElement)
Renderer.GetSymbol(GeoElement, Boolean)
Renderer.Clone()
Renderer.PropertyChanged
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.Symbology
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class UniqueValueRenderer : Renderer, INotifyPropertyChanged
Remarks

A unique value renderer contains a collection of UniqueValues. Each UniqueValue has a Symbol and a collection of Values to define a value or combination of values.

This is typically used to visualize categories or data types. For example, you can use a unique value renderer to symbolize zoning designations: yellow for "Residential", purple for "Industrial", and green for both "Forests" and "Open land".

Constructors

Name Description
UniqueValueRenderer()

Initializes a new instance of the UniqueValueRenderer class.

UniqueValueRenderer(IEnumerable<String>, IEnumerable<UniqueValue>, String, Symbol)

Initializes a new instance of the UniqueValueRenderer class with initial values.

Properties

Name Description
DefaultLabel

Gets or sets the label used for the default symbol.

DefaultSymbol

Gets or sets the default symbol for values that don't match any of the unique values.

FieldNames

Gets a collection of the field names/attribute keys that the unique values apply to.

UniqueValues

Gets a collection of unique values used by the renderer to select a symbol.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Trace utility network: Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces.
In This Article
Back to top Copyright © 2022 Esri.