ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITablePane Interface / SetZoomLevel Method
The zoom level.
Example

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

    Parameters

    zoomLevel
    The zoom level.
    Exceptions
    ExceptionDescription
    The zoom level is not within the allowed range.
    Example
    Set zoom level for Attribute Table
    if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
    {
      var currentZoomLevel = tablePane.ZoomLevel;
    
      var newZoomLevel = currentZoomLevel + 50;
      tablePane.SetZoomLevel(newZoomLevel);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also