Padding.Subtraction(Padding, Padding) 運算子

定義

在兩個指定的 Padding 物件上執行向量減法,產生新的 PaddingPerforms vector subtraction on the two specified Padding objects, resulting in a new Padding.

public:
 static System::Windows::Forms::Padding operator -(System::Windows::Forms::Padding p1, System::Windows::Forms::Padding p2);
public static System.Windows.Forms.Padding operator - (System.Windows.Forms.Padding p1, System.Windows.Forms.Padding p2);
static member ( - ) : System.Windows.Forms.Padding * System.Windows.Forms.Padding -> System.Windows.Forms.Padding
Public Shared Operator - (p1 As Padding, p2 As Padding) As Padding

參數

p1
Padding

要從中減去的 Padding (minuend)。The Padding to subtract from (the minuend).

p2
Padding

要從中減去的 Padding (subtrahend)。The Padding to subtract from (the subtrahend).

傳回

p2 減去 p1Padding 餘數。The Padding result of subtracting p2 from p1.

備註

向量減法運算是減去每個邊緣的填補值所得到的結果。A vector subtraction operation is the result of subtracting the padding values for each edge. 例如,結果的 Left 屬性是兩個運算元的 Left 屬性之間的差異。For example, the Left property of the result is the difference between the Left properties of two operands.

這個運算子的對等方法是 Padding.Subtract(Padding, Padding)The equivalent method for this operator is Padding.Subtract(Padding, Padding)

適用於

另請參閱