public IReadOnlyList<long> GetSelectedObjectIds()
Public Function GetSelectedObjectIds() As IReadOnlyList(Of Long)
Return Value
A read-only list of object ids.
public IReadOnlyList<long> GetSelectedObjectIds()
Public Function GetSelectedObjectIds() As IReadOnlyList(Of Long)
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
var tv = TableView.Active; if (tv == null) return; QueuedTask.Run(async () => { // get the set of selected objectIDs var selOids = tv.GetSelectedObjectIds(); // get the set of selected row indexes var selRows = tv.GetSelectedRowIndexes(); });
Target Platforms: Windows 11, Windows 10