ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanSwitchHighlight Property
Example

In This Topic
    CanSwitchHighlight Property (TableView)
    In This Topic
    Determines if the table view can switch its highlight. The table view must be showing the Selected Records view.
    Syntax
    Public ReadOnly Property CanSwitchHighlight As Boolean
    public bool CanSwitchHighlight {get;}
    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