ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FieldDescription Class
Members Example

In This Topic
    FieldDescription Class
    In This Topic
    Represents a field with updatable properties.
    Object Model
    FieldDescription ClassCIMNumberFormat Class
    Syntax
    public class FieldDescription 
    Public Class FieldDescription 
    Example
    Field Access
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    // field access
    var flds = tv.GetFields();
    var fldIdx = tv.GetFieldIndex("STATE_NAME");
    var fldDesc = tv.GetField(fldIdx);
    
    Get or set the Active Field
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    // get active field, active field name
    var activeFieldIdx = tv.ActiveFieldIndex;
    var fldDesc = tv.GetField(activeFieldIdx);
    var fldName = fldDesc.Name;
    
    // set active field by name
    tv.SetActiveField("STATE_NAME");
    
    // or set active field by index
    tv.SetActiveField(3);
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.FieldDescription

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also