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

In This Topic
    ToggleRowHighlight Method (TableView)
    In This Topic
    Toggles the highlight of the active row of the table view.
    Syntax
    Public Sub ToggleRowHighlight() 
    public void ToggleRowHighlight()
    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