AnalysisRegion.IntersectsWith - метод
Обновлен: Ноябрь 2007
Determines whether the area of the AnalysisRegion intersects with the specified rectangle.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)
Синтаксис
'Декларация
Public Function IntersectsWith ( _
rectangle As Rectangle _
) As Boolean
'Применение
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
Параметры
- rectangle
Тип: System.Drawing.Rectangle
The rectangle with which to compare, in ink space coordinates.
Возвращаемое значение
Тип: System.Boolean
true if the area of the AnalysisRegion intersects with the specified rectangle; otherwise, false.
Заметки
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.
Примеры
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.
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0