ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITablePane Interface
Members Example

In This Topic
    ITablePane Interface
    In This Topic
    Interface to the table pane.
    Object Model
    ITablePane InterfaceMapMember Class
    Syntax
    public interface ITablePane 
    Public Interface ITablePane 
    Example
    Set zoom level for Attribute Table
    if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
    {
      var currentZoomLevel = tablePane.ZoomLevel;
    
      var newZoomLevel = currentZoomLevel + 50;
      tablePane.SetZoomLevel(newZoomLevel);
    }
    
    Retrieve the values of selected cell in the attribute table
    if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
    {
      var mapMember = tablePane.MapMember;
      var oid = tablePane.ActiveObjectID;
      if (oid.HasValue && oid.Value != -1 && mapMember != null)
      {
        var activeField = tablePane.ActiveColumn;
        return QueuedTask.Run<object>(() =>
        {
          // TODO: Use core objects to retrieve record and get value
    
          return null;
        });
      }
    }
    Move to a particular row
      if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
      {
        // move to first row
        tablePane.BringIntoView(0);
    
        // move to sixth row
        tablePane.BringIntoView(5);
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also