InkOverlay 생성자 (IntPtr)
업데이트: 2007년 11월
InkOverlay 클래스의 새 인스턴스를 초기화하고 창 핸들에 연결합니다.
네임스페이스: Microsoft.Ink
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Sub New ( _
handle As IntPtr _
)
‘사용 방법
Dim handle As IntPtr
Dim instance As New InkOverlay(handle)
public InkOverlay(
IntPtr handle
)
public:
InkOverlay(
IntPtr handle
)
public InkOverlay(
IntPtr handle
)
public function InkOverlay(
handle : IntPtr
)
매개 변수
- handle
형식: System.IntPtr
InkOverlay 개체가 연결된 창의 핸들입니다.
설명
새로 만든 InkOverlay는 지정된 창 표면에서 잉크를 수집할 수 있습니다.
펜뿐 아니라 마우스도 입력에 사용될 수 있습니다.
![]() |
---|
부분 신뢰 환경에서 사용하는 경우 이 생성자에 SecurityPermissionFlag.UnmanagedCode 권한 및 InkOverlay에서 요구하는 권한이 필요합니다. 자세한 내용은 Security and Trust를 참조하십시오. |
예제
이 C# 예제에서는 InkOverlay 개체인 theInkOverlay의 새 인스턴스를 초기화하고 폼의 창 핸들에 연결한 다음 활성화합니다.
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.
theInkOverlay = new InkOverlay(Handle);
theInkOverlay.Enabled = true;
}
public static void Main()
{
Application.Run(new MinimumInkApp());
}
}
이 Microsoft Visual Basic .NET 예제에서는 InkOverlay 개체인 theInkOverlay의 새 인스턴스를 초기화하고 폼의 창 핸들에 연결한 다음 활성화합니다.
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.
theInkOverlay = New InkOverlay(Handle)
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에서 지원