UniqueValueRenderer
Base Type: FeatureRenderer
A class that contains a unique value renderer.
Property |
Type |
Description |
---|---|---|
DefaultLabel |
string |
Label used for unspecified values. |
DefaultSymbol |
Symbol used to draw any unspecified values (may be NULL). | |
Field1 |
string |
The first field that contains the values to symbolize. |
Field2 |
string |
The second value that will be used to create all unique combinations of unique values with the first value field. |
Field3 |
string |
The third value that will be used to create all unique combinations of unique values with the two value fields you choose. |
FieldDelimiter |
string |
Delimiter used to separate field values. |
RotationField |
string |
Rotation field. |
RotationType |
Rotation type. | |
RotationTypeSpecified |
bool |
Indicates if RotationType is specified. |
TransparencyField |
string |
The transparency field. |
UniqueValueInfos |
A collection of UniqueValueInfo objects. |
Remarks
Use the this renderer to display feature data that falls into distinct categories based on attribute values. For example, if you have parcel data with land use types of residential, agriculture, and retail, you can use a different symbol to represent each unique land use type.
Unique value rendering is typically based on a single attribute field, however up to 3 fields can be used. When more than one field name is set, categories are generated based on all combinations of the unique values of all of the fields. 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. The categories in this case will be defined as Jefferson|Idaho,Jefferson|Montana when FieldDelimiter is "r".
Features whose values are not defined in UniqueValueInfos may be drawn with DefaultSymbol.
A symbol can be rotated if it is a marker symbol or made transparent if it is a fill symbol. The amount of rotation or transparency is determined by feature value of the attributed field specified by RotationField or TransparencyField associated with each feature.
RotationType defines which of two conventions for rotation angles is used.