AnalysisRegion.IntersectsWith Method
Determines whether the area of the AnalysisRegion intersects with the specified rectangle.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public Function IntersectsWith ( _
rectangle As Rectangle _
) As Boolean
'Usage
Dim instance As AnalysisRegion
Dim rectangle As Rectangle
Dim returnValue As Boolean
returnValue = instance.IntersectsWith(rectangle)
public bool IntersectsWith (
Rectangle rectangle
)
public:
bool IntersectsWith (
Rectangle rectangle
)
public boolean IntersectsWith (
Rectangle rectangle
)
public function IntersectsWith (
rectangle : Rectangle
) : boolean
Not applicable.
Parameters
- rectangle
The rectangle with which to compare, in ink space coordinates.
Return Value
true if the area of the AnalysisRegion intersects with the specified rectangle; otherwise, false.
Remarks
The comparison is in ink space coordinates.
If the rectangle passed only shares a border with one of the rectangles of the analysis region IntersectsWith returns false.
Example
This example tests whether the AnalysisRegion, theFirstAnalysisRegion
, intersects with a specified rectangle.
' Test for intersection between an AnalysisRegion and a rectangle.
If theFirstAnalysisRegion.IntersectsWith( _
New System.Drawing.Rectangle(50, 50, 100, 100)) Then
' Insert code here.
End If
// Test for intersection between an AnalysisRegion and a rectangle.
if (theFirstAnalysisRegion.IntersectsWith(
new System.Drawing.Rectangle(50, 50, 100, 100)))
{
// Insert code here.
}
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
AnalysisRegion Class
AnalysisRegion Members
Microsoft.Ink Namespace