Show / Hide Table of Contents

Class UniqueValue

Represents a unique value or combination of values and a matching symbol in a UniqueValueRenderer.

Inheritance
System.Object
UniqueValue
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Symbology
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class UniqueValue : INotifyPropertyChanged

Constructors

Name Description
UniqueValue()

Initializes a new instance of the UniqueValue class.

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

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

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

Initializes a new instance of the UniqueValue class (or unique combination of values) with alternate symbols.

UniqueValue(String, String, Symbol, Object)

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

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

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

Properties

Name Description
AlternateSymbols

Gets the alternate symbols for the unique value's primary symbol. Currently only MultilayerSymbols are supported as alternates.

Description

Gets or sets a description of the unique value. "Parcels zoned for residential use", for example.

Label

Gets or sets a label for the unique value. "Residential", for example.

Symbol

Gets or sets the symbol used to represent the value or values.

Values

Gets a collection that defines a unique value or unique combination of values. Multiple values represent a unique combination. The FieldNames property must have a matching number of entries. There are limitations on the types of values that can be stored. Types that can be stored are System.String, System.Guid, System.DateTime, System.DateTimeOffset, System.Boolean, System.Single, System.Double, and most integral types (signed and unsigned System.Int16, System.Int32, and System.Int64).

Methods

Name Description
Clone()

Returns a clone of this UniqueValue.

FromJson(String)

Creates an instance of a UniqueValue by deserializing JSON.

ToJson()

Returns a string containing the JSON representation of the UniqueValue.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

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.