ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IGridOptionsEnvironment Interface / SetGridOptions Method
The map on which the grid options will be applied
The grid options to apply

In This Topic
    SetGridOptions Method (IGridOptionsEnvironment)
    In This Topic
    Set the grid options for the given map.This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Sub SetGridOptions( _
       ByVal map As Map, _
       ByVal gridOptions As GridOptions _
    ) 
    void SetGridOptions( 
       Map map,
       GridOptions gridOptions
    )

    Parameters

    map
    The map on which the grid options will be applied
    gridOptions
    The grid options to apply
    Exceptions
    ExceptionDescription
    map cannot be null
    gridOptions cannot be null
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also