Condividi tramite


Costruttore InkEdit

Aggiornamento: novembre 2007

Inizializza una nuova istanza del controllo InkEdit.

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

Sintassi

'Dichiarazione
Public Sub New
'Utilizzo

Dim instance As New InkEdit()
public InkEdit()
public:
InkEdit()
public InkEdit()
public function InkEdit()

Esempi

In questo esempio di C# viene creato un controllo InkEdit, theInkEdit, in un controllo Windows Form.

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

namespace InkEditSample
{
    class InkEditSample : System.Windows.Forms.Form
    {
        private Microsoft.Ink.InkEdit theInkEdit;

        public InkEditSample()
        {
            theInkEdit = new InkEdit();
            theInkEdit.Parent = this;
            theInkEdit.Dock = DockStyle.Fill;
            theInkEdit.UseMouseForInput = true;
            theInkEdit.Enabled = true;
        }

        [STAThread]
        public static void Main()
        {
            Application.Run(new InkEditSample());
        }
    }
}

In questo esempio di Microsoft® Visual Basic® .NET viene creato un controllo InkEdit, theInkEdit, in un controllo Windows Form.

Imports System
Imports System.Windows.Forms
Imports Microsoft.Ink

Public Class InkEditSample
    Inherits System.Windows.Forms.Form

    Private theInkEdit As Microsoft.Ink.InkEdit

    Public Sub New()
        theInkEdit = New Microsoft.Ink.InkEdit()
        theInkEdit.Parent = Me
        theInkEdit.Dock = DockStyle.Fill
        theInkEdit.UseMouseForInput = True
        theInkEdit.Enabled = True
    End Sub

    <STAThread()> Shared Sub Main()
        Application.Run(New InkEditSample())
    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

InkEdit Classe

Membri InkEdit

Spazio dei nomi Microsoft.Ink