Tests whether two specified System.Windows.Forms.Padding objects are equivalent.
- p1
- A System.Windows.Forms.Padding to test.
- p2
- A System.Windows.Forms.Padding to test.
true if the two System.Windows.Forms.Padding objects are equal; otherwise, false.
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.