ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / FrameworkExtender Class / GetMapTableView Method
The pane collection.
The mapMember for which the table pane will be opened
Example

In This Topic
    GetMapTableView Method
    In This Topic
    Gets or creates the CIMMapTableView for a MapMember. If the table pane has been opened for this MapMember, it will initialize the CIMMapTableView with the previous values. If table pane has never been opened, it will initialize the CIMMapTableView with the default table pane values.
    Syntax
    Public Shared Function GetMapTableView( _
       ByVal paneCollection As PaneCollection, _
       ByVal mapMember As MapMember _
    ) As CIMMapTableView

    Parameters

    paneCollection
    The pane collection.
    mapMember
    The mapMember for which the table pane will be opened

    Return Value

    Return a ArcGIS.Core.CIM.CIMMapTableView object, if the MapMember can be opened by the table pane. It returns null if the MapMember can't be opened by the table pane or if the active MapView does not contain the MapMember.
    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

    ArcGIS Pro version: 3 or higher.
    See Also