Condividi tramite


Metodo InkPicture.GetWindowInputRectangle

Aggiornamento: novembre 2007

Ottiene il rettangolo della finestra, espresso in pixel, in cui viene disegnato l'input penna.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Sintassi

'Dichiarazione
Public Sub GetWindowInputRectangle ( _
    <OutAttribute> ByRef windowInputRectangle As Rectangle _
)
'Utilizzo
Dim instance As InkPicture
Dim windowInputRectangle As Rectangle

instance.GetWindowInputRectangle(windowInputRectangle)
public void GetWindowInputRectangle(
    out Rectangle windowInputRectangle
)
public:
void GetWindowInputRectangle(
    [OutAttribute] Rectangle% windowInputRectangle
)
public void GetWindowInputRectangle(
    /** @attribute OutAttribute */ /** @ref */Rectangle windowInputRectangle
)
public function GetWindowInputRectangle(
    windowInputRectangle : Rectangle
)

Parametri

Note

Per impostazione predefinita, il rettangolo di input della finestra è impostato su {0,0,0,0}. Il mapping di questo rettangolo predefinito viene eseguito alla dimensione dell'intera finestra.

Se si chiama il metodo GetWindowInputRectangle prima di SetWindowInputRectangle, questo metodo ottiene un rettangolo con le coordinate predefinite.

Esempi

In questo esempio di C# si ottiene il rettangolo di input della finestra di un nuovo oggetto InkPicture, theInkPicture, che assume come valore predefinito {0,0,0,0}.

[C#]

using Microsoft.Ink;
//...
InkPicture theInkPicture = new InkPicture();
Rectangle theRect;
theInkPicture.GetWindowInputRectangle(out theRect)//...

In questo esempio di Microsoft® Visual Basic® .NET si ottiene il rettangolo di input della finestra di un nuovo oggetto InkPicture, theInkPicture, che assume come valore predefinito {0,0,0,0}.

[Visual Basic]

Imports Microsoft.Ink
'...
Dim theInkPicture as New InkPicture()
Dim theRect as Rectangle
theInkPicture.GetWindowInputRectangle(theRect)

Piattaforme

Windows Vista

.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

InkPicture Classe

Membri InkPicture

Spazio dei nomi Microsoft.Ink

InkPicture.SetWindowInputRectangle