ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITablePane Interface / MapMember Property
Example

In This Topic
    MapMember Property (ITablePane)
    In This Topic
    Gets the Layer or StandaloneTable source of the table.
    Syntax
    MapMember MapMember {get;}
    ReadOnly Property MapMember As MapMember
    Example
    Retrieve the values of selected cell in the attribute table
    if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
    {
      var mapMember = tablePane.MapMember;
      var oid = tablePane.ActiveObjectID;
      if (oid.HasValue && oid.Value != -1 && mapMember != null)
      {
        var activeField = tablePane.ActiveColumn;
        return QueuedTask.Run<object>(() =>
        {
          // TODO: Use core objects to retrieve record and get value
    
          return null;
        });
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also