Padding::Equality Operator (Padding, Padding)

 
equivalentCodeEntityM:System.Windows.Forms.Padding.Equals(System.Windows.Forms.Padding,System.Windows.Forms.Padding)

Tests whether two specified Padding objects are equivalent.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
static bool operator ==(
	Padding p1,
	Padding p2
)

Parameters

p1
Type: System.Windows.Forms::Padding

A Padding to test.

p2
Type: System.Windows.Forms::Padding

A Padding to test.

Return Value

Type: System::Boolean

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

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.

.NET Framework
Available since 2.0
Return to top
Show: