ArcGIS Pro 3.4 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 bool CanGetHighlightedObjectIds {get;}
    Public ReadOnly Property CanGetHighlightedObjectIds As Boolean
    Example
    Get highlighted row indexes
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    QueuedTask.Run(async () =>
    {
      IReadOnlyList<long> highlightedOIDs = null;
      if (tv.CanGetHighlightedObjectIds)
        // get the set of selected objectIDs 
        highlightedOIDs = tv.GetHighlightedObjectIds();
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also