Padding.Equality(Padding, Padding) 運算子

定義

測試兩個指定的 Padding 物件是否相等。Tests whether two specified Padding objects are equivalent.

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

參數

p1
Padding

要測試的 PaddingA Padding to test.

p2
Padding

要測試的 PaddingA Padding to test.

傳回

如果兩個 Padding 物件相等則為 true,否則為 falsetrue if the two Padding objects are equal; otherwise, false.

備註

如果這兩個邊緣(LeftRightTopBottom 兩者的填補值都相同,則兩個 Padding 物件相等。Two Padding objects are equal if the padding values for each of the four edges - Left, Right, Top, and Bottom - are the same for both objects.

這個運算子的對等方法是 Padding.EqualsThe equivalent method for this operator is Padding.Equals

適用於

另請參閱