Public Function GetSelectedRowIndexes() As IReadOnlyList(Of Long)
public IReadOnlyList<long> GetSelectedRowIndexes()
Return Value
A read-only list of row indexes.
Public Function GetSelectedRowIndexes() As IReadOnlyList(Of Long)
public IReadOnlyList<long> GetSelectedRowIndexes()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
{
// Note: Needs QueuedTask to run
{
// get the set of selected objectIDs
var selOids = tableView.GetSelectedObjectIds();
// get the set of selected row indexes
var selRows = tableView.GetSelectedRowIndexes();
}
}
{
// Note: Needs QueuedTask to run
{
// set of selected OIDS
var newoids = new List<long>();
newoids.AddRange([10, 15, 17]);
tableView.Select(newoids, true);
// add to set of selected row indexes
var selRows = tableView.GetSelectedRowIndexes();
var newRows = new List<long>(selRows);
newRows.AddRange([21, 35]);
tableView.Select(newRows, false);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)