Partager via


AnalysisRegionBase.Union, méthode (AnalysisRegionBase)

Mise à jour : November 2007

Étend la zone du AnalysisRegionBase à la zone créée par la fusion avec le AnalysisRegionBase spécifié.

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

Syntaxe

'Déclaration
Public Sub Union ( _
    regionToUnion As AnalysisRegionBase _
)
'Utilisation
Dim instance As AnalysisRegionBase
Dim regionToUnion As AnalysisRegionBase

instance.Union(regionToUnion)
public void Union(
    AnalysisRegionBase regionToUnion
)
public:
void Union(
    AnalysisRegionBase^ regionToUnion
)
public void Union(
    AnalysisRegionBase regionToUnion
)
public function Union(
    regionToUnion : AnalysisRegionBase
)

Paramètres

Notes

Si l'une des zones est infinie, la nouvelle zone est également infinie.

Exemples

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

Union, surcharge

System.Windows.Ink.AnalysisCore, espace de noms

AnalysisRegionBase.Exclude

AnalysisRegionBase.Intersect