SizeF.Subtract(SizeF, SizeF) 方法

定義

將另一個 SizeF 結構的寬度和高度減去某一個 SizeF 結構的寬度和高度。Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure.

public:
 static System::Drawing::SizeF Subtract(System::Drawing::SizeF sz1, System::Drawing::SizeF sz2);
public static System.Drawing.SizeF Subtract (System.Drawing.SizeF sz1, System.Drawing.SizeF sz2);
static member Subtract : System.Drawing.SizeF * System.Drawing.SizeF -> System.Drawing.SizeF
Public Shared Function Subtract (sz1 As SizeF, sz2 As SizeF) As SizeF

參數

sz1
SizeF

SizeF 結構,位於減法運算子的左側。The SizeF structure on the left side of the subtraction operator.

sz2
SizeF

SizeF 結構,位於減法運算子的右側。The SizeF structure on the right side of the subtraction operator.

傳回

SizeF 結構,即減法運算的結果。A SizeF structure that is a result of the subtraction operation.

適用於

另請參閱