# PointF.Subtract メソッド

## 定義

PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size.

## オーバーロード

 Subtract(PointF, Size) PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size. Subtract(PointF, SizeF) PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size.

## Subtract(PointF, Size)

PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size.

``````public:
static System::Drawing::PointF Subtract(System::Drawing::PointF pt, System::Drawing::Size sz);``````
``public static System.Drawing.PointF Subtract (System.Drawing.PointF pt, System.Drawing.Size sz);``
``static member Subtract : System.Drawing.PointF * System.Drawing.Size -> System.Drawing.PointF``
``Public Shared Function Subtract (pt As PointF, sz As Size) As PointF``

#### パラメーター

pt
PointF

sz
Size

`pt` の座標から減算する数を指定する SizeThe Size that specifies the numbers to subtract from the coordinates of `pt`.

PointF

### 注釈

メソッドは、の Subtract Width x 座標との y 座標から、指定したサイズのを減算し PointF Height PointF ます。The Subtract method subtracts the Width of the specified size from the x-coordinate of the PointF and the Height from the y-coordinate of the PointF.

## Subtract(PointF, SizeF)

PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size.

``````public:
static System::Drawing::PointF Subtract(System::Drawing::PointF pt, System::Drawing::SizeF sz);``````
``public static System.Drawing.PointF Subtract (System.Drawing.PointF pt, System.Drawing.SizeF sz);``
``static member Subtract : System.Drawing.PointF * System.Drawing.SizeF -> System.Drawing.PointF``
``Public Shared Function Subtract (pt As PointF, sz As SizeF) As PointF``

#### パラメーター

pt
PointF

sz
SizeF

`pt` の座標から減算する数を指定する SizeFThe SizeF that specifies the numbers to subtract from the coordinates of `pt`.

PointF

### 例

``````private void SubtractExample(PaintEventArgs e)
{
PointF point1 = new PointF(120.5F, 120F);
SizeF size1 = new SizeF(120.5F, 30.5F);
PointF point2 = PointF.Subtract(point1, size1);
e.Graphics.DrawLine(Pens.Blue, point1, point2);
}
``````
``````Private Sub SubtractExample(ByVal e As PaintEventArgs)
Dim point1 As New PointF(120.5F, 120F)
Dim size1 As New SizeF(120.5F, 30.5F)
Dim point2 As PointF = PointF.Subtract(point1, size1)
e.Graphics.DrawLine(Pens.Blue, point1, point2)

End Sub
``````

### 注釈

メソッドは、の Subtract Width x 座標との y 座標から、指定したサイズのを減算し PointF Height PointF ます。The Subtract method subtracts the Width of the specified size from the x-coordinate of the PointF and the Height from the y-coordinate of the PointF.