Tests two sizes for equality allowing a small margin for rounding errors.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public static bool SamePaperSizes(
	SizeF size1,
	SizeF size2
)
Visual Basic
Public Shared Function SamePaperSizes ( _
	size1 As SizeF, _
	size2 As SizeF _
) As Boolean

Parameters

size1
Type: System.Drawing..::..SizeF
The first size to compare.
size2
Type: System.Drawing..::..SizeF
The second size to compare.

Return Value

True if the two sizes are reasonably close, false otherwise.

See Also