ArcGIS Pro 3.3 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 bool CanToggleRowHighlight {get;}
    Public ReadOnly Property CanToggleRowHighlight As Boolean
    Example
    Toggle, Switch, Clear Highlights
    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();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also