Point.Subtract(Point, Size) Point.Subtract(Point, Size) Point.Subtract(Point, Size) Point.Subtract(Point, Size) Method

定義

傳回值,該值為從指定的 Size 減去指定的 Point 得到的結果。Returns the result of subtracting specified Size from the specified Point.

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

參數

pt
Point Point Point Point

要從中減去值的 PointThe Point to be subtracted from.

sz
Size Size Size Size

要從 Size 中減去的 PointThe Size to subtract from the Point.

傳回

Point,為減法運算的結果。The Point that is the result of the subtraction operation.

備註

Height Width 會從Size指定之點的和X值減去指定的和。 Subtract YThe Subtract subtracts the Width and Height of the specified Size from the X and Y values of the specified point.

適用於

另請參閱