Metodo AnalysisRegionBase.Union (AnalysisRegionBase)
Aggiornamento: novembre 2007
Espande l'area di questo oggetto AnalysisRegionBase all'area creata dall'unione con l'oggetto AnalysisRegionBase specificato.
Spazio dei nomi: System.Windows.Ink.AnalysisCore
Assembly: IACore (in IACore.dll)
Sintassi
'Dichiarazione
Public Sub Union ( _
regionToUnion As AnalysisRegionBase _
)
'Utilizzo
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
)
Parametri
- regionToUnion
Tipo: System.Windows.Ink.AnalysisCore.AnalysisRegionBase
Area con cui eseguire l'unione.
Note
Se una delle aree è infinita, lo è anche la nuova area.
Esempi
In questo esempio vengono utilizzati Exclude, Intersect e Union per modificare l'area di un oggetto esistente AnalysisRegionBase denominato 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);
Piattaforme
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.
Informazioni sulla versione
.NET Framework
Supportato in: 3.0