ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / AreaUnit Class / Hectares Property
Example

In This Topic
    Hectares Property
    In This Topic
    Gets an area unit object representing area in hectares (Factory Code = 109401).
    Syntax
    public static AreaUnit Hectares {get;}
    Public Shared ReadOnly Property Hectares As AreaUnit
    Example
    AreaUnit - Convert between hectares and acres
    // convert 2 hectares to acres
    double acres = AreaUnit.Hectares.ConvertTo(2, AreaUnit.Acres);
    
    AreaUnit - Convert between hectares and square miles
    // convert 300 hectares to square miles
    double sqMiles = AreaUnit.Hectares.ConvertTo(300, AreaUnit.SquareMiles);
    AreaUnit - How many Square meters in various units
    double sqMetersPerUnit = AreaUnit.Acres.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.Ares.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.Hectares.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareKilometers.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareMiles.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareYards.SquareMetersPerUnit;
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also