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

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