{
// Note: Needs QueuedTask to run
{
// get list of current selected objectIDs
IReadOnlyList<long> selectedObjectIds = tableView.GetSelectedObjectIds();
List<long> idsToHighlight = [];
// add the first two selected objectIds to highlight
if (selectedObjectIds.Count >= 2)
{
idsToHighlight.Add(selectedObjectIds[0]);
idsToHighlight.Add(selectedObjectIds[1]);
}
// highlight
if (tableView.CanHighlight)
tableView.Highlight(idsToHighlight, true);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)