다음을 통해 공유


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

업데이트: 2007년 11월

AnalysisRegionBase의 영역을 해당 영역과 지정된 사각형의 합집합으로 만들어진 영역으로 확장합니다.

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

구문

‘선언
Public Sub Union ( _
    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.Union(left, top, right, bottom)
public void Union(
    int left,
    int top,
    int right,
    int bottom
)
public:
void Union(
    int left, 
    int top, 
    int right, 
    int bottom
)
public void Union(
    int left,
    int top,
    int right,
    int bottom
)
public function Union(
    left : int, 
    top : int, 
    right : int, 
    bottom : int
)

매개 변수

  • left
    형식: System.Int32
    잉크 공간 좌표에서 결합할 사각형의 왼쪽 경계입니다.
  • top
    형식: System.Int32
    잉크 공간 좌표에서 결합할 사각형의 위쪽 경계입니다.
  • right
    형식: System.Int32
    잉크 공간 좌표에서 결합할 사각형의 오른쪽 경계입니다.
  • bottom
    형식: System.Int32
    잉크 공간 좌표에서 결합할 사각형의 아래쪽 경계입니다.

설명

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

영역 중 하나가 무한하면 새 영역도 무한합니다.

예제

예제에서는 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 멤버

Union 오버로드

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

AnalysisRegionBase.Exclude

AnalysisRegionBase.Intersect