ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITablePaneEx Interface
Members Example

In This Topic
    ITablePaneEx Interface
    In This Topic
    Represents a pane which contains a table view populated with data from a MapMember within a map.
    Object Model
    ITablePaneEx InterfaceTableView ClassCIMTableView Class
    Syntax
    public interface ITablePaneEx 
    Public Interface ITablePaneEx 
    Example
    Change table View caption
    // find all the table panes (table panes hosting map data)
    var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>();
    var tablePane = tablePanes.FirstOrDefault(p => (p as ITablePaneEx)?.Caption == "oldcCaption");
    var tablePaneEx = tablePane as ITablePaneEx;
    if (tablePaneEx != null)
      tablePaneEx.Caption = "newCaption";
    
    // find all the external table panes (table panes hosting external data)
    var externalPanes = FrameworkApplication.Panes.OfType<IExternalTablePane>();
    var externalTablePane = externalPanes.FirstOrDefault(p => p.Caption == "oldcCaption");
    if (externalTablePane != null)
      externalTablePane.Caption = "newCaption";
    Get TableView from table pane
    TableView tv = null;
    
    // find all the table panes (table panes hosting map data)
    var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>();
    var tablePane = tablePanes.FirstOrDefault(p => (p as ITablePaneEx)?.Caption == "caption");
    var tablePaneEx = tablePane as ITablePaneEx;
    if (tablePaneEx != null)
      tv = tablePaneEx.TableView;
    
    // if it's not found, maybe it's an external table pane
    if (tv == null)
    {
      // find all the external table panes (table panes hosting external data)
      var externalPanes = FrameworkApplication.Panes.OfType<IExternalTablePane>();
      var externalTablePane = externalPanes.FirstOrDefault(p => p.Caption == "caption");
      if (externalTablePane != null)
        tv = externalTablePane.TableView;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also