RealTimeStylus クラスの新しいインスタンスを初期化し、指定したウィンドウにアタッチして、指定したタブレットにインク収集を制限します。
名前空間 : Microsoft.StylusInput
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Sub New ( _
handle As IntPtr, _
tablet As Tablet _
)
'使用
Dim handle As IntPtr
Dim tablet As Tablet
Dim instance As New RealTimeStylus(handle, _
tablet)
public RealTimeStylus(
IntPtr handle,
Tablet tablet
)
public:
RealTimeStylus(
IntPtr handle,
Tablet^ tablet
)
public RealTimeStylus(
IntPtr handle,
Tablet tablet
)
public function RealTimeStylus(
handle : IntPtr,
tablet : Tablet
)
パラメータ
- handle
型 : System.IntPtr
RealTimeStylus オブジェクトをアタッチするウィンドウのハンドル。このパラメータを 0 に設定すると、コンストラクタは例外をスローします。
- tablet
型 : Microsoft.Ink.Tablet
インクを収集するタブレット、またはアタッチしたすべてのタブレットでインクを収集する場合は nullnull 参照 (Visual Basic では Nothing) (Visual Basic では Nothing)。
解説
新しい RealTimeStylus オブジェクトの場合、初期状態でインク収集は無効で、入力領域は RealTimeStylus オブジェクトがアタッチされたウィンドウの境界に設定されます。詳細については、Enabled プロパティと WindowInputRectangle プロパティのトピックを参照してください。
例
この C# の例は、フォームの Load イベント ハンドラのスニペットです。Panel オブジェクト thePanel の Handle にアタッチされた RealTimeStylus オブジェクトを作成します。Tablet オブジェクト theTablet だけが入力に使用されます。
using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;
// ...
// The panel where the tablet pen data is collected.
private System.Windows.Forms.Panel thePanel;
// The form's Load event handler.
private void theForm_Load(object sender, System.EventArgs e)
{
// ...
// Create the RealTimeStylus object.
this.theRealTimeStylus = new RealTimeStylus(this.thePanel.Handle, theTablet);
// ...
}
プラットフォーム
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0