ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / SwitchHighlight Method
Example

In This Topic
    SwitchHighlight Method (TableView)
    In This Topic
    Switch the current highlight of the table view.
    Syntax
    Public Sub SwitchHighlight() 
    public void SwitchHighlight()
    Example
    Toggle, Switch, Clear Highlights
    {
      // toggle the active rows selection
      if (tableView.CanToggleRowHighlight)
        tableView.ToggleRowHighlight();
    
      // switch highlighted rows
      if (tableView.CanSwitchHighlight)
        tableView.SwitchHighlight();
    
      // clear the highlights
      if (tableView.CanClearHighlighted)
        tableView.ClearHighlighted();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also