Edit

Share via


Padding.Equality(Padding, Padding) Operator

Definition

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

Parameters

p1
Padding

A Padding to test.

p2
Padding

A Padding to test.

Returns

true if the two Padding objects are equal; otherwise, false.

Remarks

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.

The equivalent method for this operator is Padding.Equals

Applies to

See also