CanGetHighlightedObjectIds Property (TableView)
Gets if the objectIds of the highlighted rows can be retrieved. The table view must be showing the Selected Records view.
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();
});
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.1 or higher.