ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / GetFields Method
Example

In This Topic
    GetFields Method (TableView)
    In This Topic
    Gets a read-only list of FieldDescription representing the columns in the table.
    Syntax

    Return Value

    A read-only list of FieldDescription.
    Example
    Field Access
    {
      // field access
      var flds = tableView.GetFields();
      var fldIdx = tableView.GetFieldIndex("STATE_NAME");
      var fldDesc = tableView.GetField(fldIdx);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also