次の方法で共有


AnalysisRegionBase.Exclude メソッド (AnalysisRegionBase)

この AnalysisRegionBase の領域を、指定した AnalysisRegionBase と交差しない領域の一部分に限定します。

名前空間 :  System.Windows.Ink.AnalysisCore
アセンブリ :  IACore (IACore.dll 内)

構文

'宣言
Public Sub Exclude ( _
    regionToExclude As AnalysisRegionBase _
)
'使用
Dim instance As AnalysisRegionBase
Dim regionToExclude As AnalysisRegionBase

instance.Exclude(regionToExclude)
public void Exclude(
    AnalysisRegionBase regionToExclude
)
public:
void Exclude(
    AnalysisRegionBase^ regionToExclude
)
public void Exclude(
    AnalysisRegionBase regionToExclude
)
public function Exclude(
    regionToExclude : AnalysisRegionBase
)

パラメータ

解説

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