Format Property

Type

System.String

 

Access

Get/Set

 

Description

The Format property provides access to a string that describes the format to use with the ToString and FromString methods.  A list of the supported formats is given here.

 

Example

[VB]

Private Sub GeoCalcNET_AngularValue_Format(ByVal av As GeoCalcNET.AngularValue)

Dim format As String = av.Format

 

av.Format = "DM"

If Not av.FromString("N18.3075") Then

MessageBox.Show("unable to set value from string")

End If

End Sub

 

[C#]

private void GeoCalcNET_AngularValue_Format(GeoCalcNET.AngularValue av)

{

String format = av.Format;

av.Format = "DMS";

}