InkOverlay 생성자 (Control, Tablet)
업데이트: 2007년 11월
InkOverlay 클래스의 새 인스턴스를 초기화하고 지정된 Tablet 개체의 지정된 컨트롤에 연결합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Sub New ( _
attachedControl As Control, _
tablet As Tablet _
)
‘사용 방법
Dim attachedControl As Control
Dim tablet As Tablet
Dim instance As New InkOverlay(attachedControl, _
tablet)
public InkOverlay(
Control attachedControl,
Tablet tablet
)
public:
InkOverlay(
Control^ attachedControl,
Tablet^ tablet
)
public InkOverlay(
Control attachedControl,
Tablet tablet
)
public function InkOverlay(
attachedControl : Control,
tablet : Tablet
)
매개 변수
- attachedControl
형식: System.Windows.Forms.Control
InkOverlay 개체가 연결된 컨트롤입니다.
- tablet
형식: Microsoft.Ink.Tablet
InkOverlay 개체의 새 창이 연결된 Tablet 개체입니다.
예제
이 C# 예제에서는 InkOverlay 개체인 theInkOverlay의 새 인스턴스를 초기화하고 폼의 창 핸들과 기본 Tablet에 연결한 다음 활성화합니다.
using System;
using System.Drawing;
using System.Windows.Forms;
using Microsoft.Ink;
class MinimumInkApp : System.Windows.Forms.Form
{
InkOverlay theInkOverlay;
public MinimumInkApp()
{
// Initialize the form.
this.Text = "Minimum Ink Application";
// Create and enable theInkOverlay.
Tablets allTablets = new Tablets();
theInkOverlay = new InkOverlay(this, allTablets.DefaultTablet);
theInkOverlay.Enabled = true;
}
public static void Main()
{
Application.Run(new MinimumInkApp());
}
}
이 Microsoft Visual Basic .NET 예제에서는 InkOverlay 개체인 theInkOverlay의 새 인스턴스를 초기화하고 폼의 창 핸들과 기본 Tablet에 연결한 다음 활성화합니다.
Imports System.Windows.Forms
Imports Microsoft.Ink
Public Class MinimumInkApp
Inherits System.Windows.Forms.Form
Dim theInkOverlay As InkOverlay
Public Sub New()
MyBase.New()
'Initialize the form.
Me.Text = "Minimum Ink Application"
'Create and enable theInkOverlay.
Dim allTablets As New Tablets()
theInkOverlay = New InkOverlay(Me, allTablets.DefaultTablet)
theInkOverlay.Enabled = True
End Sub
Public Shared Sub Main()
Application.Run(New MinimumInkApp())
End Sub
End Class
플랫폼
Windows Vista
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원