InkEdit 构造函数
初始化 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 窗体控件中创建一个 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(R) Visual Basic(R) .NET 示例在 Windows 窗体控件中创建一个 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