doogal.co.uk Home



Take a string formatted as a 6, 8 or 10 figure OS grid reference (e.g. "TG514131") and create a new OSRef object that represents that grid reference. The first character must be H, N, S, O or T. The second character can be any uppercase character from A through Z excluding I.

Namespace: DotNetCoords
Assembly: DotNetCoords (in DotNetCoords.dll) Version: 1.0.0.15 (1.0.0.15)

Syntax

C#
public OSRef(
	string gridRef
)
Visual Basic
Public Sub New ( 
	gridRef As String
)
Visual C++
public:
OSRef(
	String^ gridRef
)
F#
new : 
        gridRef : string -> OSRef

Parameters

gridRef
Type: System..::..String
a string representing a 6, 8 or 10 figure Ordnance Survey grid reference in the form XY123456.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf the northing or easting are out of range

See Also