ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanZoomToSelected Property
Example

In This Topic
    CanZoomToSelected Property (TableView)
    In This Topic
    Determines if the table view can zoom to the selected rows.
    Syntax
    public bool CanZoomToSelected {get;}
    Public ReadOnly Property CanZoomToSelected As Boolean
    Example
    Zoom or Pan To Selected Rows
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    if (tv.CanZoomToSelected)
      tv.ZoomToSelected();
    
    if (tv.CanPanToSelected)
      tv.PanToSelected();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also