次の方法で共有


AnalysisRegionBase.Exclude メソッド (Int32, Int32, Int32, Int32)

この 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 単位です。

2 つの領域が交差しない場合、この AnalysisRegionBase は変更されません。

この例では、ExcludeIntersect および Union を使用して、既存の AnalysisRegionBase、theFirstAnalysisRegionBase の領域を変更します。

' 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