LinearUnit Constructor

[VB]

Public Sub New()

[C#]

public LinearUnit()

 

Description

The LinearUnit constructor produces a new instance of the LinearUnit class.  The resulting unit is equivalent to meters.

 

Example

[VB]

Private Sub GeoCalcNET_LinearUnit(ByVal data As GeoCalcNET.DataSourceComponent)

lu As New GeoCalcNET.LinearUnit

lu.Name = "Chains"

lu.Abbreviation = "ch"

lu.UnitsPerMeter = 0.04970909090909

End Sub

 

[C#]

private void GeoCalcNET_LinearUnit()

{

GeoCalcNET.LinearUnit lu = new GeoCalcNET.LinearUnit();

lu.Abbreviation = "p";

lu.Name = "Perch (p)";

lu.UnitsPerMeter = 0.1988383838;

}