ESRI.ArcGIS.ADF.Web
UniqueValueRenderer Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.Display.Renderer Namespace : UniqueValueRenderer Class




A renderer that displays multiple symbols for a graphics layer based on matches to unique values in multiple columns.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class UniqueValueRenderer 
   Inherits ValueMapRenderer(Of String)
   Implements IOverlayableRenderer, IRendererIJsonSerializable 
Visual Basic (Usage)Copy Code
Dim instance As UniqueValueRenderer
C# 
[SerializableAttribute()]
public class UniqueValueRenderer : ValueMapRenderer<string>, IOverlayableRenderer, IRendererIJsonSerializable  

Remarks

UniqueValueRenderer extends ValueMapRenderer to assign features to symbol classes based on exact matches to a set of values in multiple columns.

The UniqueValueRenderer allows matches to values in up to three columns of the graphics layer. For example, a graphics layer containing data for cities might have attribute columns IsCapital, IsInland, and PopulationLevel (low, medium and high). These three columns can be specified in the properties ValueColumnName, ValueColumnName2 and ValueColumnName3. A delimiter (e.g., "," or "|") must be specified when two or three columns are used. Multiple UniqueValue items would be added to the Values of the renderer. Each UniqueValue would specify in its Value property a string with three delimited values. In our example, one UniqueValue.Value might be set to "true,false,high". When the UniqueValueRenderer is used with the graphics layer, this UniqueValue would match cities with IsCapital=true, IsInland=false, and PopulationLevel=high. Cities with these attribute values would be displayed with the symbol specified for this UniqueValue.

If multiple columns are not used, then UniqueValueRenderer operates in the same way as ValueMapRenderer. Specifically, this will be the case if ValueColumnName2 and ValueDelimiter are not set.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.Web.Display.Renderer.ValueMapRenderer<String>
      ESRI.ArcGIS.ADF.Web.Display.Renderer.UniqueValueRenderer

See Also

© 2010 All Rights Reserved.