次の方法で共有


InkCollector コンストラクタ (Control, Tablet)

InkCollector オブジェクトを作成し、指定されたタブレットの指定されたコントロールに結び付けます。

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

構文

'宣言
Public Sub New ( _
    attachedControl As Control, _
    tablet As Tablet _
)
'使用
Dim attachedControl As Control
Dim tablet As Tablet

Dim instance As New InkCollector(attachedControl, _
    tablet)
public InkCollector(
    Control attachedControl,
    Tablet tablet
)
public:
InkCollector(
    Control^ attachedControl, 
    Tablet^ tablet
)
public InkCollector(
    Control attachedControl,
    Tablet tablet
)
public function InkCollector(
    attachedControl : Control, 
    tablet : Tablet
)

パラメータ

解説

選択される Tablet に応じて、ペンまたはマウスが入力に使用されます。

この C# の例では、InkCollector オブジェクト theInkCollector の新しいインスタンスを初期化し、フォームと既定の Tablet のウィンドウ ハンドルと関連付け、有効にします。

using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Ink;

class MinimumInkApp : System.Windows.Forms.Form
{
InkCollector theInkCollector;

public MinimumInkApp()
{
 // Initialize the form.
 this.Text = "Minimum Ink Application";

 // Create and enable theInkCollector.
 Tablets allTablets = new Tablets();
 theInkCollector = new InkCollector(this, allTablets.DefaultTablet);
 theInkCollector.Enabled = true;
}

public static void Main()
{
 Application.Run(new MinimumInkApp());
}
}

この Microsoft Visual Basic .NET の例では、InkCollector オブジェクト theInkCollector の新しいインスタンスを初期化し、フォームおよび既定の Tablet のウィンドウ ハンドルと関連付け、有効にします。

Imports System.Windows.Forms
Imports Microsoft.Ink
Public Class MinimumInkApp
Inherits System.Windows.Forms.Form

Dim theInkCollector As InkCollector

Public Sub New()
 MyBase.New()
 'Initialize the form.
 Me.Text = "Minimum Ink Application"
 
 'Create and enable theInkCollector.
 Dim allTablets As New Tablets()
 theInkCollector = New InkCollector(Me, allTablets.DefaultTablet)
 theInkCollector.Enabled = True
End Sub

Public Shared Sub Main()
 Application.Run(New MinimumInkApp())
End Sub
End Class

プラットフォーム

Windows Vista

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

バージョン情報

.NET Framework

サポート対象 : 3.0

参照

参照

InkCollector クラス

InkCollector メンバ

InkCollector オーバーロード

Microsoft.Ink 名前空間

InkCollector