Compartilhar via


LayoutDoubleUtil.AreClose Method (Rect, Rect)

Determines whether the absolute values of the differences between the left positions, top positions, heights and widths of the specified rectangles are less than the double value 0.00000153.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function AreClose ( _
    rect1 As Rect, _
    rect2 As Rect _
) As Boolean
public static bool AreClose(
    Rect rect1,
    Rect rect2
)
public:
static bool AreClose(
    Rect rect1, 
    Rect rect2
)
static member AreClose : 
        rect1:Rect * 
        rect2:Rect -> bool
public static function AreClose(
    rect1 : Rect, 
    rect2 : Rect
) : boolean

Parameters

  • rect1
    Type: Rect

    The first rectangle for comparison.

  • rect2
    Type: Rect

    The second rectangle for comparison.

Return Value

Type: Boolean
Returns true if the differences between the values are less than 0.00000153; otherwise returns false.

.NET Framework Security

See Also

Reference

LayoutDoubleUtil Class

AreClose Overload

Microsoft.VisualStudio.PlatformUI Namespace