다음을 통해 공유


AnalysisRegionBase.Intersect 메서드 (AnalysisRegionBase)

업데이트: 2007년 11월

AnalysisRegionBase의 영역을 해당 영역과 지정된 AnalysisRegionBase의 교집합으로 만들어진 영역으로 제한합니다.

네임스페이스:  System.Windows.Ink.AnalysisCore
어셈블리:  IACore(IACore.dll)

구문

‘선언
Public Sub Intersect ( _
    regionToIntersect As AnalysisRegionBase _
)
‘사용 방법
Dim instance As AnalysisRegionBase
Dim regionToIntersect As AnalysisRegionBase

instance.Intersect(regionToIntersect)
public void Intersect(
    AnalysisRegionBase regionToIntersect
)
public:
void Intersect(
    AnalysisRegionBase^ regionToIntersect
)
public void Intersect(
    AnalysisRegionBase regionToIntersect
)
public function Intersect(
    regionToIntersect : AnalysisRegionBase
)

매개 변수

설명

두 영역이 교차하지 않는 경우 새 영역은 비어 있습니다.

예제

예제에서는 Exclude, IntersectUnion을 사용하여 theFirstAnalysisRegionBase라는 기존 AnalysisRegionBase의 영역을 수정합니다.

' Extend an AnalysisRegionBase using the Union method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Union(theSecondAnalysisRegionBase)

' Extend an AnalysisRegionBase using the Union method and a rectangle.
theFirstAnalysisRegionBase.Union(0, 500, 3000, 3500)

' Restrict an AnalysisRegionBase using the Intersect method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Intersect(theSecondAnalysisRegionBase)

' Restrict an AnalysisRegionBase using the Intersect method and a rectangle.
theFirstAnalysisRegionBase.Intersect(1000, 1000, 5000, 5000)

' Restrict an AnalysisRegionBase using the Exclude method and
' an AnalysisRegionBase.
theFirstAnalysisRegionBase.Exclude(theSecondAnalysisRegionBase)

' Modify an AnalysisRegionBase using the Exclude method and a rectangle.
theFirstAnalysisRegionBase.Exclude(1500, 1500, 2500, 2500)
// Extend an AnalysisRegionBase using the Union method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Union(theSecondAnalysisRegionBase);

// Extend an AnalysisRegionBase using the Union method and a rectangle.
theFirstAnalysisRegionBase.Union(0, 500, 3000, 3500);

// Restrict an AnalysisRegionBase using the Intersect method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Intersect(theSecondAnalysisRegionBase);

// Restrict an AnalysisRegionBase using the Intersect method and a rectangle.
theFirstAnalysisRegionBase.Intersect(1000, 1000, 5000, 5000);

// Restrict an AnalysisRegionBase using the Exclude method and
// an AnalysisRegionBase.
theFirstAnalysisRegionBase.Exclude(theSecondAnalysisRegionBase);

// Modify an AnalysisRegionBase using the Exclude method and a rectangle.
theFirstAnalysisRegionBase.Exclude(1500, 1500, 2500, 2500);

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

AnalysisRegionBase 클래스

AnalysisRegionBase 멤버

Intersect 오버로드

System.Windows.Ink.AnalysisCore 네임스페이스

AnalysisRegionBase.Exclude

AnalysisRegionBase.Union