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


IFieldOverrides Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IFieldOverrides Interface

Provides access to a collection of field overrides.

Product Availability

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

Members

Description
Method Add Creates an explicit override with field content. To erase an existing field override, pass in blank field name.
Method Next Accesses the next field override in the collection.
Method Reset Resets the override collection, before calling Next.

CoClasses that implement IFieldOverrides

CoClasses and Classes Description
RepresentationRule An object defining a representation rule.

Remarks

Use IFieldOverrides interface to manage the different field overrides set for specific graphical attribute of basic symbol, geometric effect and marker placement that are present within a representation rule.  

Add method can be used to add a new field override given an Index of a specific graphical attribute within a GraphicAttributes collection and the Name of the field into which the attribute overrides are written to.

Reset method is used to reset all field overrides present on a representation rule. Next method is used to retrieve the individual field override. Use IFieldOverride interface to access properties present for a field override. Note: Reset method has to be called prior to calling Next method.

Note: FieldOverrides can be explicitly made only when the Field type matches with the graphical attribute type.

Index - esriGraphicAttributeType

Supported esriFieldType (IField::Type)

       0 - esriAttributeTypeBoolean esriFieldTypeInteger, esriFieldTypeSmallInteger, esriFieldTypeString
       1 - esriAttributeTypeInteger esriFieldTypeInteger, esriFieldTypeSmallInteger
       2 - esriAttributeTypeEnum esriFieldTypeInteger, esriFieldTypeSmallInteger
       3 - esriAttributeTypeDouble esriFieldTypeSingle, esriFieldTypeDouble
       4 - esriAttributeTypeSize esriFieldTypeSingle, esriFieldTypeDouble
       5 - esriAttributeTypeText esriFieldTypeString
       6 - esriAttributeTypeColor esriFieldTypeBlob
       7 - esriAttributeTypeMarker esriFieldTypeBlob
       8 - esriAttributeTypeDash  esriFieldTypeString