ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ITablePane Interface / ZoomLevel Property
Example

In This Topic
    ZoomLevel Property (ITablePane)
    In This Topic
    Gets the zoom level for the table.
    Syntax
    ReadOnly Property ZoomLevel As Integer
    int ZoomLevel {get;}
    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