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
)
パラメータ
- attachedControl
型 : System.Windows.Forms.Control
InkCollector オブジェクトが割り当てられているコントロール。
- tablet
型 : Microsoft.Ink.Tablet
InkCollector オブジェクトの新しいウィンドウが関連付けられた 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