Parameters
- inArea
- Area in the units of this instance.
- outUnit
- Unit to convert to.
Return Value
Area converted to the specifed unit.
| Exception | Description |
|---|---|
| System.ArgumentNullException | The outUnit is null. |
{
// convert 2 hectares to acres
double acres = AreaUnit.Hectares.ConvertTo(2, AreaUnit.Acres);
}
{
// convert 300 hectares to square miles
double sqMiles = AreaUnit.Hectares.ConvertTo(300, AreaUnit.SquareMiles);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)