次の方法で共有


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

InkCollector オブジェクトを作成し、指定されたコントロールに結び付け、入力にマウスを使用するかどうかを決定します。

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

構文

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

Dim instance As New InkCollector(attachedControl, _
    useMouseForInput)
public InkCollector(
    Control attachedControl,
    bool useMouseForInput
)
public:
InkCollector(
    Control^ attachedControl, 
    bool useMouseForInput
)
public InkCollector(
    Control attachedControl,
    boolean useMouseForInput
)
public function InkCollector(
    attachedControl : Control, 
    useMouseForInput : boolean
)

パラメータ

  • useMouseForInput
    型 : System.Boolean
    タブレットの入力にマウスを使用する場合は、true に設定し、それ以外の場合は false に設定します。

この C# の例では、InkCollector オブジェクト theInkCollector の新しいインスタンスを初期化し、フォームと関連付け、マウスが入力に使用されていないことを示してからそれを有効にします。

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.
        theInkCollector = new InkCollector(this, false);
        theInkCollector.Enabled = true;
    }

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

この Microsoft Visual Basic .NET の例では、InkCollector オブジェクト theInkCollector の新しいインスタンスを初期化し、フォームと関連付け、マウスが入力に使用されていないことを示してからそれを有効にします。

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.
        theInkCollector = New InkCollector(Me, False)
        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