共用方式為


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 單位。

如果兩個區域未交集,則這個 AnalysisRegionBase 會不變。

範例

這個範例使用 ExcludeIntersectUnion 修改現有 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