Condividi tramite


Metodo AnalysisRegionBase.GetBounds

Aggiornamento: novembre 2007

Ottiene il rettangolo di delimitazione dell'oggetto AnalysisRegionBase.

Spazio dei nomi:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Sintassi

'Dichiarazione
Public Function GetBounds As Integer()
'Utilizzo
Dim instance As AnalysisRegionBase
Dim returnValue As Integer()

returnValue = instance.GetBounds()
public int[] GetBounds()
public:
array<int>^ GetBounds()
public int[] GetBounds()
public function GetBounds() : int[]

Valore restituito

Tipo: array<System.Int32[]
Limite sinistro, superiore, destro e inferiore di AnalysisRegionBase in unità HIMETRIC.

Note

I limiti sono in coordinate dello spazio di input penna.

Se l'oggetto AnalysisRegionBase rappresenta un'area infinita, il limite sinistro e il limite superiore sono System.Int32.MinValue e il limite destro e il limite inferiore sono System.Int32.MaxValue.

Se l'oggetto AnalysisRegionBase rappresenta un'area vuota, tutti i limiti del rettangolo sono impostati su 0.

Esempi

Nell'esempio seguente vengono illustrate due modalità per ottenere l'area rappresentata dall'oggetto AnalysisRegionBase, theFirstAnalysisRegionBase.

' Get the area of the AnalysisRegionBase as an array of rectangles.
Dim theArea As Integer() = theFirstAnalysisRegionBase.GetRegionScans()

' Get the bounds of an AnalysisRegionBase.
Dim theBounds As Integer() = theFirstAnalysisRegionBase.GetBounds()
// Get the area of the AnalysisRegionBase as an array of rectangles.
int[] theArea =
    theFirstAnalysisRegionBase.GetRegionScans();

// Get the bounds of an AnalysisRegionBase.
int[] theBounds = theFirstAnalysisRegionBase.GetBounds();

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

Vedere anche

Riferimenti

AnalysisRegionBase Classe

Membri AnalysisRegionBase

Spazio dei nomi System.Windows.Ink.AnalysisCore

AnalysisRegionBase.GetRegionScans