Compartir a través de


InkEdit.InkEdit Constructor

Initializes a new instance of the InkEdit control.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New InkEdit
public InkEdit ()
public:
InkEdit ()
public InkEdit ()
public function InkEdit ()
Not applicable.

Example

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

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

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkEdit Class
InkEdit Members
Microsoft.Ink Namespace