Y Property

Type

GeoCalcNET.LinearValue

 

Access

Get/Set

 

Description

The Y property provides access to the LinearValue object that represents the y-coordinate of the CartesianPoint.

 

Example

[VB]

Private Sub GeoCalcNET_CartesianPoint_Y(ByVal pt As GeoCalcNET.CartesianPoint, ByVal data As GeoCalcNET.DataSourceComponent)

Dim y As GeoCalcNET.LinearValue = pt.Y

Dim lv As New GeoCalcNET.LinearValue

lv.Units = data.GetLinearUnit("BMG", "CENTIMETERS")

lv.InUnits = 233

pt.Y = lv

End Sub

 

[C#]

private void GeoCalcNET_CartesianPoint_Y(GeoCalcNET.CartesianPoint pt)

{

GeoCalcNET.LinearValue lv = pt.Y;

GeoCalcNET.LinearValue lv2 = new GeoCalcNET.LinearValue();

lv2.Units = lv.Units;

lv2.InUnits = 222.22;

pt.Y = lv2;

}