다음을 통해 공유


AnalysisRegionBase.Exclude 메서드 (Int32, Int32, Int32, Int32)

업데이트: 2007년 11월

AnalysisRegionBase의 영역을 지정된 사각형과 교차하지 않는 영역 부분으로 제한합니다.

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

구문

‘선언
Public Sub Exclude ( _
    left As Integer, _
    top As Integer, _
    right As Integer, _
    bottom As Integer _
)
‘사용 방법
Dim instance As AnalysisRegionBase
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer

instance.Exclude(left, top, right, bottom)
public void Exclude(
    int left,
    int top,
    int right,
    int bottom
)
public:
void Exclude(
    int left, 
    int top, 
    int right, 
    int bottom
)
public void Exclude(
    int left,
    int top,
    int right,
    int bottom
)
public function Exclude(
    left : int, 
    top : int, 
    right : int, 
    bottom : int
)

매개 변수

설명

모든 매개 변수는 HIMETRIC 단위입니다.

두 영역이 교차하지 않으면 이 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 멤버

Exclude 오버로드

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

AnalysisRegionBase.Intersect

AnalysisRegionBase.Union