ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / FrameworkExtender Class / OpenTablePane Method / OpenTablePane(PaneCollection,CIMMapTableView) Method
The map table view for which the table pane will be opened
Example

In This Topic
    OpenTablePane(PaneCollection,CIMMapTableView) Method
    In This Topic
    Open a table pane for a MapMember. If a table pane is already open it will be activated. You must be on the UI thread to call this function.
    Syntax
    Public Overloads Shared Function OpenTablePane( _
       ByVal paneCollection As PaneCollection, _
       ByVal mapTableView As CIMMapTableView _
    ) As ITablePane

    Parameters

    paneCollection
    mapTableView
    The map table view for which the table pane will be opened

    Return Value

    Exceptions
    ExceptionDescription
    The mapTableView can not be null.
    The mapTableView must be created by calling the PaneCollection.GetMapTableView method.
    Table panes cannot be accessed from a thread other than the thread they were created on.
    The map viewer is not initialized.
    Remarks
    There must be an active map view otherwise a System.InvalidOperationException is thrown
    Example
    Display Table pane for Map Member
    var mapMember = MapView.Active.Map.GetLayersAsFlattenedList().OfType<MapMember>().FirstOrDefault();
    //Gets or creates the CIMMapTableView for a MapMember.
    var tableView = FrameworkApplication.Panes.GetMapTableView(mapMember);
    //Configure the table view
    tableView.DisplaySubtypeDomainDescriptions = false;
    tableView.SelectionMode = false;
    tableView.ShowOnlyContingentValueFields = true;
    tableView.HighlightInvalidContingentValueFields = true;
    //Open the table pane using the configured tableView. If a table pane is already open it will be activated.
    //You must be on the UI thread to call this function.
    var tablePane = FrameworkApplication.Panes.OpenTablePane(tableView);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also