var tv = TableView.Active; if (tv == null) return; // toggle the active rows selection if (tv.CanToggleRowHighlight) tv.ToggleRowHighlight(); // switch highlighted rows if (tv.CanSwitchHighlight) tv.SwitchHighlight(); // clear the highlights if (tv.CanClearHighlighted) tv.ClearHighlighted();
Target Platforms: Windows 11, Windows 10