ArcObjects Library Reference (Carto)  

IUniqueValueRenderer.Value Property

Value at the specified index.

[Visual Basic .NET]
Public Function get_Value ( _
    ByVal Index As Integer _
) As String
[Visual Basic .NET]
Public Sub set_Value ( _
    ByVal Index As Integer, _
    ByVal Value As String _
)
[C#]
public string get_Value (
    int Index
);
[C#]
public void set_Value (
    int Index,
    string Value
);
[C++]
HRESULT get_Value(
  long Index,
  BSTR* Value
);
[C++]
HRESULT put_Value(
  long Index,
  BSTR Value
);
[C++]

Parameters

Index [in]   Index is a parameter of type long Value [out, retval]   Value is a parameter of type BSTR Index [in]   Index is a parameter of type long Value [in]   Value is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The value for the specified index.

Remarks

Value is the key that associates symbols with features.

When there is no grouping, meaning that each category is defined by a single value-symbol pair, then you can look up the symbol for a given feature by using the Symbol property and passing the value. If there is grouping -- meaning that more that one value is associated with the same symbol -- then you need to additionally check to see if the value has a ReferenceValue. If it does, to access the symbol that the feature will be drawn with, use the Symbol property and pass the ReferenceValue of the value.

See Also

IUniqueValueRenderer Interface

.NET Related Topics

How to define a renderer for your layer |