Export (0) Print
Expand All

SqlGeometryBuilder.AddLine Method (Double, Double)

Constructs additional points in a geometry type figure.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

public void AddLine(
	double x,
	double y
)

Parameters

x
Type: Double
A double that specifies the x-coordinate of a point in a geometry figure.
y
Type: Double
A double that specifies the y-coordinate of a point in a geometry figure.

Method is used together with BeginFigure() to construct the points of a geometry type figure. BeginFigure() can only construct the starting endpoint for a geometry type figure. Use AddLine() to construct additional points for the figure.

Method throws a FormatException when there is invalid input.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft