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

In This Topic
    GetSelectedFields Method (TableView)
    In This Topic
    Gets the set of selected fields in the table view.
    Syntax
    Public Function GetSelectedFields() As IReadOnlyList(Of String)
    public IReadOnlyList<string> GetSelectedFields()
    Example
    Select Fields
    {
      // get selected fields
      var selectedfields = tableView.GetSelectedFields();
    
      // set selected fields
      tableView.SetSelectedFields(["CITY_FIPS", "STATE_FIPS"]);
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also