ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / MapFrame Class / SetGrids Method
Pass an updated array of grids or graticules to be applied to the map frame.
Version

SetGrids Method
Update the grids or graticules of a map frame. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetGrids( 
   CIMMapGrid[] grids
)

Parameters

grids
Pass an updated array of grids or graticules to be applied to the map frame.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also