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.
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.
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);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.0 or higher.