add a linestring feature to document

Aug 25, 2015 at 1:31 PM
How can I add more than one coordinate to a linestring?
From the documentation:

public LineString(Google.Kml.coordinates coordinates_)
public coordinates(double latitude, double longitude)

It seems like a linestring is created using only one coordinate which doesn't make sense.

I want to get an object like this:
    -122.364383,37.824664,0 -122.364152,37.824322,0
Aug 25, 2015 at 1:52 PM
Sorry, I used an older version from NuGet.
BTW, this is not updated with the new version
Aug 5, 2016 at 1:26 PM
Edited Aug 5, 2016 at 1:28 PM
You can create a SharpKml.Dom.CoordinateCollection object, add multiple SharpKml.Base.Vector objects to it, and then set the SharpKml.Dom.LineString object coordinates to the CoordinateCollection object.