System.Windows.Forms.Padding.op_Equality Method

Tests whether two specified System.Windows.Forms.Padding objects are equivalent.

Syntax

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

Parameters

p1
A System.Windows.Forms.Padding to test.
p2
A System.Windows.Forms.Padding to test.

Returns

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

Remarks

Two System.Windows.Forms.Padding objects are equal if the padding values for each of the four edges – Padding.Left, Padding.Right, Padding.Top, and Padding.Bottom – are the same for both objects.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0