ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanGetHighlightedObjectIds Property
Example

In This Topic
    CanGetHighlightedObjectIds Property (TableView)
    In This Topic
    Gets if the objectIds of the highlighted rows can be retrieved. The table view must be showing the Selected Records view.
    Syntax
    Public ReadOnly Property CanGetHighlightedObjectIds As Boolean
    public bool CanGetHighlightedObjectIds {get;}
    Example
    Get highlighted row indexes
    {
      // Note: Needs QueuedTask to run
      {
        IReadOnlyList<long> highlightedOIDs = null;
        if (tableView.CanGetHighlightedObjectIds)
          // get the set of selected objectIDs 
          highlightedOIDs = tableView.GetHighlightedObjectIds();
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also