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 function InkEdit()
Examples
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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0