Margins.Equals Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Compares this Margins to the specified Object to determine whether they have the same dimensions.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public override bool Equals(
	object obj


Type: System.Object

The object to which to compare this Margins.

Return Value

Type: System.Boolean

true if the specified object is a Margins and has the same Top, Bottom, Right and Left values as this Margins; otherwise, false.

.NET Framework
Available since 1.1
Return to top