AnalysisRegion.IntersectsWith - метод
Обновлен: Ноябрь 2007
Determines whether the area of the AnalysisRegion intersects the specified rectangle.
Пространство имен: System.Windows.Ink
Сборка: IAWinFX (в IAWinFX.dll)
Синтаксис
'Декларация
Public Function IntersectsWith ( _
rectangle As Rect _
) As Boolean
'Применение
Dim instance As AnalysisRegion
Dim rectangle As Rect
Dim returnValue As Boolean
returnValue = instance.IntersectsWith(rectangle)
public bool IntersectsWith(
Rect rectangle
)
public:
bool IntersectsWith(
Rect rectangle
)
public boolean IntersectsWith(
Rect rectangle
)
public function IntersectsWith(
rectangle : Rect
) : boolean
Параметры
- rectangle
Тип: System.Windows.Rect
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 IntersectsWith method throws an ArgumentOutOfRangeException if rectangle has bounds located outside of MinXY and MaxXY.
Примеры
This example tests whether the AnalysisRegion, named theFirstAnalysisRegion, intersects with a specified rectangle.
' Test for intersection between an AnalysisRegion and a rectangle.
If theFirstAnalysisRegion.IntersectsWith(New Rect(50, 50, 100, 100)) Then
' Insert code here.
End If
// Test for intersection between an AnalysisRegion and a rectangle.
if (theFirstAnalysisRegion.IntersectsWith(
new Rect(50, 50, 100, 100)))
{
// Insert code here.
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0