ComponentOne Document Library for WPF
SamePaperSizes Method

C1.WPF.Document.4 Assembly > C1.WPF.Document Namespace > Utils Class : SamePaperSizes Method
The first size to compare.
The second size to compare.
Tests two sizes for equality allowing a small margin for rounding errors.
Syntax
'Declaration
 
Public Shared Function SamePaperSizes( _
   ByVal size1 As System.Windows.Size, _
   ByVal size2 As System.Windows.Size _
) As System.Boolean
public static System.bool SamePaperSizes( 
   System.Windows.Size size1,
   System.Windows.Size size2
)

Parameters

size1
The first size to compare.
size2
The second size to compare.

Return Value

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

Reference

Utils Class
Utils Members