ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / SetZoomLevel Method
The zoom level.
Example

In This Topic
    SetZoomLevel Method (TableView)
    In This Topic
    Set the zoom level for the table view. The allowed values are 50 to 400.
    Syntax
    public void SetZoomLevel( 
       int zoomLevel
    )
    Public Sub SetZoomLevel( _
       ByVal zoomLevel As Integer _
    ) 

    Parameters

    zoomLevel
    The zoom level.
    Exceptions
    ExceptionDescription
    The zoom level is not within the allowed range.
    Example
    Set ZoomLevel
    //Get the active table view.
    var tableView = TableView.Active;
    if (tableView == null)
      return;
    
    // change zoom level
    if (tableView.ZoomLevel > 100)
      tableView.SetZoomLevel(100);
    else
      tableView.SetZoomLevel(200);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also