Partager via


AnalysisRegionBase.Exclude, méthode (Int32, Int32, Int32, Int32)

Mise à jour : November 2007

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

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

Syntaxe

'Déclaration
Public Sub Exclude ( _
    left As Integer, _
    top As Integer, _
    right As Integer, _
    bottom As Integer _
)
'Utilisation
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
)

Paramètres

Notes

Tous les paramètres sont exprimés en unités HIMETRIC.

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