初始化 InkEdit 控制項的新執行個體。
命名空間: Microsoft.Ink
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Sub New
'用途
Dim instance As New InkEdit()
public InkEdit()
public:
InkEdit()
public InkEdit()
public function InkEdit()
範例
這個 C# 範例會在 Windows Form 控制項中,建立 InkEdit 控制項 theInkEdit。
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());
}
}
}
這個 Microsoft® Visual Basic® .NET 範例會在 Windows Form 控制項中建立 InkEdit 控制項 theInkEdit。
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
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0