ArcGIS Pro 3.7 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
    Sub SetZoomLevel( _
       ByVal zoomLevel As Integer _
    ) 
    void SetZoomLevel( 
       int zoomLevel
    )

    Parameters

    zoomLevel
    The zoom level.
    Exceptions
    ExceptionDescription
    The zoom level is not within the allowed range.
    Example
    Set zoom level for Attribute Table
    {
        //Check if the active pane is an ITablePane
        if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
        {
            //Get the current zoom level of the table pane
            var currentZoomLevel = tablePane.ZoomLevel;
            // Set a new zoom level, for example, increase it by 50
            var newZoomLevel = currentZoomLevel + 50;
            // Set the new zoom level to the table pane
            tablePane.SetZoomLevel(newZoomLevel);
        }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also