Click or drag to resize

LineString Methods

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

The LineString type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAdd
Add the given point to the end of the LineString.
Public methodDistanceTo(LatLon)
Calculates the shortest distance from the given point to this LineString.
Public methodDistanceTo(LatLon, Int32)
Calculates the shortest distance (in degrees) from the given point to this LineString.
Public methodDistanceTo(LatLon, DistanceUnit)
Calculates the shortest distance from the given point to this LineString.
Public methodDistanceTo(LatLon, Int32, DistanceUnit)
Calculates the shortest distance (in degrees) from the given point to this LineString.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodCode exampleGetEnumerator
Enumerate all points in the line string.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleLineLength
Calculate the length of this LineString in the specified DistanceUnits.
Public methodPercentAlong
Returns the distance that loc is from the start of the linestring, as a percentage.
Public methodPythagoreanDistanceTo Obsolete.
Public methodQuickDistanceTo
Calculates the distance (in degrees) from the given point to this LineString.
Public methodSubstring
Gets a LineString that is a sub-string of the current LineString.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also