Margins.Equality Operator (Margins, Margins)

 
equivalentCodeEntityM:System.Drawing.Printing.Margins.Equals(System.Object)

Compares two Margins to determine if they have the same dimensions.

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

public static bool operator ==(
	Margins m1,
	Margins m2
)

Parameters

m1
Type: System.Drawing.Printing.Margins

The first Margins to compare for equality.

m2
Type: System.Drawing.Printing.Margins

The second Margins to compare for equality.

Return Value

Type: System.Boolean

true to indicate the Left, Right, Top, and Bottom properties of both margins have the same value; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: