## オーバーロード

 AddBeziers(Point[]) 接続された 3 次ベジエ曲線のシーケンスを現在の図形に追加します。Adds a sequence of connected cubic Bézier curves to the current figure. AddBeziers(PointF[]) 接続された 3 次ベジエ曲線のシーケンスを現在の図形に追加します。Adds a sequence of connected cubic Bézier curves to the current figure.

``````public:
void AddBeziers(... cli::array <System::Drawing::Point> ^ points);``````
``````public:
``public void AddBeziers (params System.Drawing.Point[] points);``
``public void AddBeziers (System.Drawing.Point[] points);``
``member this.AddBeziers : System.Drawing.Point[] -> unit``
``Public Sub AddBeziers (ParamArray points As Point())``
``Public Sub AddBeziers (points As Point())``

points
Point[]

### 例

• 7つのポイントの配列を作成します (2 つの接続されたベジエ曲線を表します)。Creates an array of seven points (representing two connected Bézier curves).

• パスを作成し、一連のベジエ曲線点をパスに追加します。Creates a path and adds the series of Bézier curve points to the path.

• 画面にパスを描画します。Draws the path to screen.

``````private:
{
array<Point>^ myArray = {Point(20,100),Point(40,75),Point(60,125),Point(80,100),Point(100,50),Point(120,150),Point(140,100)};

// Create the path and add the curves.
GraphicsPath^ myPath = gcnew GraphicsPath;

// Draw the path to the screen.
Pen^ myPen = gcnew Pen( Color::Black,2.0f );
e->Graphics->DrawPath( myPen, myPath );
}
``````
``````private void AddBeziersExample(PaintEventArgs e)
{

Point[] myArray =
{
new Point(20, 100),
new Point(40, 75),
new Point(60, 125),
new Point(80, 100),
new Point(100, 50),
new Point(120, 150),
new Point(140, 100)
};

// Create the path and add the curves.
GraphicsPath myPath = new GraphicsPath();

// Draw the path to the screen.
Pen myPen = new Pen(Color.Black, 2);
e.Graphics.DrawPath(myPen, myPath);
}
``````
``````Public Sub AddBeziersExample(ByVal e As PaintEventArgs)

Dim myArray As Point() = {New Point(20, 100), New Point(40, 75), _
New Point(60, 125), New Point(80, 100), New Point(100, 50), _
New Point(120, 150), New Point(140, 100)}
Dim myPath As New GraphicsPath
Dim myPen As New Pen(Color.Black, 2)
e.Graphics.DrawPath(myPen, myPath)
End Sub
``````

### 注釈

パラメーターは、 `points` 接続された曲線のエンドポイントと制御点の配列を指定します。The `points` parameter specifies an array of endpoints and control points of the connected curves. 最初の曲線は、2番目と3番目の点を制御点として使用することで、配列内の最初の点から4番目の点まで構築され `points` ます。The first curve is constructed from the first point to the fourth point in the `points` array by using the second and third points as control points. 前の曲線のエンドポイントに加えて、シーケンス内の後続の各曲線には、さらに3つの点が必要です。シーケンス内の次の2つの点は制御点で、3番目は追加された曲線のエンドポイントです。In addition to the endpoint of the previous curve, each subsequent curve in the sequence needs exactly three more points: the next two points in the sequence are control points, and the third is the endpoint for the added curve.

### 適用対象

``````public:
``public void AddBeziers (System.Drawing.PointF[] points);``
``member this.AddBeziers : System.Drawing.PointF[] -> unit``
``Public Sub AddBeziers (points As PointF())``

points
PointF[]

### 例

パラメーターは、 `points` 接続された曲線のエンドポイントと制御点の配列を指定します。The `points` parameter specifies an array of endpoints and control points of the connected curves. 最初の曲線は、2番目と3番目の点を制御点として使用することで、配列内の最初の点から4番目の点まで構築され `points` ます。The first curve is constructed from the first point to the fourth point in the `points` array by using the second and third points as control points. 前の曲線のエンドポイントに加えて、シーケンス内の後続の各曲線には、さらに3つの点が必要です。シーケンス内の次の2つの点は制御点で、3番目は追加された曲線のエンドポイントです。In addition to the endpoint of the previous curve, each subsequent curve in the sequence needs exactly three more points: the next two points in the sequence are control points, and the third is the endpoint for the added curve.