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

In This Topic
    CanToggleRowHighlight Property (TableView)
    In This Topic
    Determines if the table view can toggle the highlight of the active row. The table view must be showing the Selected Records view.
    Syntax
    Public ReadOnly Property CanToggleRowHighlight As Boolean
    public bool CanToggleRowHighlight {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