GetHighlightedObjectIds Method (TableView)
Gets all the highlighted object ids from the data source.
Return Value
A read-only list of object ids.
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.