ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanZoomToHighlighted Property
Example

In This Topic
    CanZoomToHighlighted Property (TableView)
    In This Topic
    Determines if the table can zoom to the highlighted rows. The table view must be showing the Selected Records view.
    Syntax
    public bool CanZoomToHighlighted {get;}
    Public ReadOnly Property CanZoomToHighlighted As Boolean
    Example
    Zoom or Pan To Highlighted Rows
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    if (tv.CanZoomToHighlighted)
      tv.ZoomToHighlighted();
    
    if (tv.CanPanToHighlighted)
      tv.PanToHighlighted();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also