Condividi tramite


InkEdit.InkEdit Constructor

InkEdit.InkEdit Constructor

Initializes a new instance of the InkEdit control.

Definition

Visual Basic .NET Public Sub InkEdit()
C# public InkEdit();
Managed C++ public: InkEdit();

Examples

[C#]

This C# example creates an InkEdit control, theInkEdit, in a Windows Form control.

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());
        }
    }
}           

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example creates an InkEdit control, theInkEdit, in a Windows Form control.

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