Sdílet prostřednictvím


AnalysisRegionBase.IntersectsWith Method

Determines whether the area of the AnalysisRegionBase intersects with the specified rectangle.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function IntersectsWith ( _
    left As Integer, _
    top As Integer, _
    right As Integer, _
    bottom As Integer _
) As Boolean
'Usage
Dim instance As AnalysisRegionBase 
Dim left As Integer 
Dim top As Integer 
Dim right As Integer 
Dim bottom As Integer 
Dim returnValue As Boolean 

returnValue = instance.IntersectsWith(left, _
    top, right, bottom)
public bool IntersectsWith(
    int left,
    int top,
    int right,
    int bottom
)
public:
bool IntersectsWith(
    int left, 
    int top, 
    int right, 
    int bottom
)
public function IntersectsWith(
    left : int, 
    top : int, 
    right : int, 
    bottom : int
) : boolean

Parameters

  • left
    Type: System.Int32

    The left bound of the rectangle with which to compare, in ink-space coordinates.

  • top
    Type: System.Int32

    The top bound of the rectangle with which to compare, in ink-space coordinates.

  • right
    Type: System.Int32

    The right bound of the rectangle with which to compare, in ink-space coordinates.

  • bottom
    Type: System.Int32

    The bottom bound of the rectangle with which to compare, in ink-space coordinates.

Return Value

Type: System.Boolean
All parameters are in HIMETRIC units.
True if the area of the AnalysisRegionBase intersects with the specified rectangle; otherwise, false.

Remarks

The comparison is in ink-space coordinates.

Examples

The following example tests whether the AnalysisRegionBase, named theFirstAnalysisRegionBase, intersects with a specified rectangle.

' Test for intersection between an AnalysisRegionBase and a rectangle. 
If theFirstAnalysisRegionBase.IntersectsWith(50, 50, 100, 100) Then 
    ' Insert code here. 
End If
          // Test for intersection between an AnalysisRegionBase and a rectangle. 
            if (theFirstAnalysisRegionBase.IntersectsWith(50, 50, 100, 100))
            {
                // Insert code here.
            }

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

AnalysisRegionBase Class

AnalysisRegionBase Members

System.Windows.Ink.AnalysisCore Namespace