次の方法で共有


InkPicture.GetWindowInputRectangle メソッド

インクが描画される四角形のウィンドウ (ピクセル単位) を取得します。

名前空間 :  Microsoft.Ink
アセンブリ :  Microsoft.Ink (Microsoft.Ink.dll 内)

構文

'宣言
Public Sub GetWindowInputRectangle ( _
    <OutAttribute> ByRef windowInputRectangle As Rectangle _
)
'使用
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
)

パラメータ

解説

既定では、ウィンドウ入力の四角形は {0,0,0,0} に設定されます。この既定の四角形はウィンドウ全体のサイズにマップされます。

SetWindowInputRectangle を呼び出す前に GetWindowInputRectangle を呼び出す場合、このメソッドは既定の座標を使用する四角形を取得します。

この C# の例では、新しい InkPicture オブジェクトのウィンドウ入力の四角形である theInkPicture を取得します。この既定値は {0,0,0,0} です。

[C#]

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

この Microsoft® Visual Basic® .NET の例では、新しい InkPicture オブジェクトのウィンドウ入力の四角形である theInkPicture を取得します。この既定値は {0,0,0,0} です。

[Visual Basic]

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

プラットフォーム

Windows Vista

.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkPicture クラス

InkPicture メンバ

Microsoft.Ink 名前空間

InkPicture.SetWindowInputRectangle