Поделиться через


AnalysisRegionBase.Exclude - метод (AnalysisRegionBase)

Обновлен: Ноябрь 2007

Restricts the area of this AnalysisRegionBase to the portion of its area that does not intersect the specified 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
)

Параметры

Заметки

If the two areas do not intersect, this AnalysisRegionBase is unchanged.

Примеры

This example uses Exclude, Intersect, and Union to modify the area of an existing 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 с пакетом обновления 2 (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