Partager via


AnalysisRegionBase.Exclude, méthode (AnalysisRegionBase)

Mise à jour : November 2007

Restreint la zone de ce AnalysisRegionBase à la partie de sa zone qui ne croise pas le AnalysisRegionBase spécifié.

Espace de noms :  System.Windows.Ink.AnalysisCore
Assembly :  IACore (dans IACore.dll)

Syntaxe

'Déclaration
Public Sub Exclude ( _
    regionToExclude As AnalysisRegionBase _
)
'Utilisation
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
)

Paramètres

Notes

Si les deux zones ne se croisent pas, le AnalysisRegionBase n'est pas modifié.

Exemples

Cet exemple utilise Exclude, Intersect et Union pour modifier la zone d'un AnalysisRegionBase existant, 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);

Plateformes

Windows Vista, Windows XP SP2, Windows Server 2003

Le .NET Framework et le .NET Compact Framework ne prennent pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Informations de version

.NET Framework

Pris en charge dans : 3.0

Voir aussi

Référence

AnalysisRegionBase, classe

Membres AnalysisRegionBase

Exclude, surcharge

System.Windows.Ink.AnalysisCore, espace de noms

AnalysisRegionBase.Intersect

AnalysisRegionBase.Union