ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GridOptionsEnvironment Class / ClearGridOptions Method
Example

In This Topic
    ClearGridOptions Method (GridOptionsEnvironment)
    In This Topic
    Clears all grid options for all maps in the Project. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub ClearGridOptions() 
    public void ClearGridOptions()
    Example
    Clear the Grid Options for All Maps
    {
        QueuedTask.Run(() =>
        {
            GridOptionsEnvironment.Instance.ClearGridOptions();
        });
    }
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also