共用方式為


SqlGeometryBuilder.AddLine 方法 (Double, Double)

Constructs additional points in a geometry type figure.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
Public Sub AddLine ( _
    x As Double, _
    y As Double _
)
'用途
Dim instance As SqlGeometryBuilder 
Dim x As Double 
Dim y As Double

instance.AddLine(x, y)
public void AddLine(
    double x,
    double y
)
public:
void AddLine(
    double x, 
    double y
)
member AddLine : 
        x:float * 
        y:float -> unit
public function AddLine(
    x : double, 
    y : double
)

參數

  • x
    型別:System.Double
    A double that specifies the x-coordinate of a point in a geometry figure.
  • y
    型別:System.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.

請參閱

參考

SqlGeometryBuilder 類別

AddLine 多載

Microsoft.SqlServer.Types 命名空間