ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing Namespace / GroundToGridCorrection Class / IsCorrecting Method
A ArcGIS.Core.CIM.CIMGroundToGridCorrection obtained from GetGroundToGridCorrection
Example

In This Topic
    IsCorrecting Method
    In This Topic
    Gets whether the ground to grid correction is turned on or off.
    Syntax
    Public Shared Function IsCorrecting( _
       ByVal c As CIMGroundToGridCorrection _
    ) As Boolean
    public static bool IsCorrecting( 
       CIMGroundToGridCorrection c
    )

    Parameters

    c
    A ArcGIS.Core.CIM.CIMGroundToGridCorrection obtained from GetGroundToGridCorrection

    Return Value

    true when c is not null and c is enabled, false otherwise.
    Remarks
    This extension method for the ArcGIS.Core.CIM.CIMGroundToGridCorrection class is identical to: c != null && c.Enabled
    Example
    G2G Settings
    bool isCorecting = correction.IsCorrecting();   // equivalent to correction != null && correction.Enabled;
    bool UsingOffset = correction.UsingDirectionOffset();   // equivalent to correction.IsCorrecting() && correction.UseDirection;
    double dOffset = correction.GetDirectionOffset(); // equivalent to correction.UsingDirectionOffset() ? correction.Direction : DefaultDirectionOffset;
    bool usingDistanceFactor = correction.UsingDistanceFactor();  // equivalent to correction.IsCorrecting() && correction.UseScale;
    bool usingElevation = correction.UsingElevationMode(); // equivalent to correction.UsingDistanceFactor() && c.ScaleType == GroundToGridScaleType.ComputeUsingElevation;
    bool usingSFactor = correction.UsingConstantScaleFactor();  //; equivalent to correction.UsingDistanceFactor() && correction.ScaleType == GroundToGridScaleType.ConstantFactor;
    double dSFactor = correction.GetConstantScaleFactor(); // equivalent to correctionc.UsingDistanceFactor() ? correction.ConstantScaleFactor : DefaultConstantScaleFactor;
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also