ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IExternalTablePane Interface / TableView Property
Example

In This Topic
    TableView Property (IExternalTablePane)
    In This Topic
    Gets the table view contained within the pane.
    Syntax
    ReadOnly Property TableView As TableView
    TableView TableView {get;}
    Example
    Get TableView from table pane
    {
      // find all the table panes (table panes hosting map data)
      var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>();
      var tablePane = tablePanes.FirstOrDefault(p => p is ITablePaneEx { Caption: "caption" });
      if (tablePane is ITablePaneEx tablePaneEx)
        tableView = tablePaneEx.TableView;
    
      // if it's not found, maybe it's an external table pane
      if (tableView == 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)
          tableView = externalTablePane.TableView;
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also