Public Sub CopyFormatting(ByVal sourcePoint As GeoCalcNET.CartesianPoint)
public void CopyFormatting(GeoCalcNET.CartesianPoint sourcePoint)
The CopyFormatting method changes the current instance such that the Units and Format properties on each of its coordinates match those in the specified point. The location of the point is not affected by this method.
Private Sub GeoCalcNET_CartesianPoint_CopyFormatting(ByVal data As GeoCalcNET.DataSourceComponent)
Dim pt As New GeoCalcNET.CartesianPoint
Dim ptOther As GeoCalcNET.CartesianPoint = data.GetCartesianPoint("BMG", "CARTESIAN_POINT_METERS")
pt.CopyFormatting(ptOther)
End Sub
private void GeoCalcNET_CartesianPoint_CopyFormatting(GeoCalcNET.DataSourceComponent data)
{
GeoCalcNET.CartesianPoint pt1 = data.GetCartesianPoint("BMG", "CARTESIAN_POINT_METERS");
GeoCalcNET.CartesianPoint pt2 = new GeoCalcNET.CartesianPoint();
pt2.CopyFormatting(pt1);
}