This document is archived and information here might be outdated.  Recommended version.


IUniqueValueRenderer.Field Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IUniqueValueRenderer.Field Property

Field at the specified index that is used to categorize features.

[Visual Basic .NET]
Public Function get_Field ( _
    ByVal Index As Integer _
) As String
[Visual Basic .NET]
Public Sub set_Field ( _
    ByVal Index As Integer, _
    ByVal Field As String _
)
[C#]
public string get_Field (
    int Index
);
[C#]
public void set_Field (
    int Index,
    string Field
);
[C++]
HRESULT get_Field(
  long Index,
  BSTR* Field
);
[C++]
HRESULT put_Field(
  long Index,
  BSTR Field
);
[C++]

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

Product Availability

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

Description

Field is a collection of field names that are to be used to create values for a unique value renderer. When more than one field name is set, categories are generated based on all combinations of the unique values of all of the fields.

Remarks

Specifying more than one field is valuable when a feature is ambiguous in the categories defined by just one field. For example, in the United States "Jefferson" is a common county name. If you are making a map of the counties of the United States, you might choose to define your unique values symbolization based on two fields: county name and state name.

 

See Also

IUniqueValueRenderer Interface

.NET Related Topics

Defining a renderer for a layer