Condividi tramite


Costruttore InkOverlay (Control, Boolean)

Aggiornamento: novembre 2007

Inizializza una nuova istanza della classe InkOverlay, la associa al controllo specificato e determina se utilizzare il mouse per l'input.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    attachedControl As Control, _
    useMouseForInput As Boolean _
)
'Utilizzo
Dim attachedControl As Control
Dim useMouseForInput As Boolean

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

Parametri

  • useMouseForInput
    Tipo: System.Boolean
    Impostare su true per utilizzare il mouse per l'input Tablet PC; in caso contrario su false.

Esempi

In questo esempio di C# una nuova istanza dell'oggetto InkOverlay, theInkOverlay viene inizializzata, associata al form e quindi attivata, dopo aver specificato che non si utilizza il mouse per l'input.

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

class MinimumInkApp : System.Windows.Forms.Form
{
    InkOverlay theInkOverlay;

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

        // Create and enable theInkOverlay.
        theInkOverlay = new InkOverlay(this, false);
        theInkOverlay.Enabled = true;
    }

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

In questo esempio di Microsoft Visual Basic .NET una nuova istanza dell'oggetto InkOverlay, theInkOverlay viene inizializzata, associata al form e quindi attivata, dopo aver specificato che non si utilizza il mouse per l'input.

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

    Dim theInkOverlay As InkOverlay

    Public Sub New()
        MyBase.New()
        'Initialize the form.
        Me.Text = "Minimum Ink Application"
        'Create and enable theInkOverlay.
        theInkOverlay = New InkOverlay(Me, False)
        theInkOverlay.Enabled = True
    End Sub

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

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

InkOverlay Classe

Membri InkOverlay

Overload InkOverlay

Spazio dei nomi Microsoft.Ink

InkOverlay