다음을 통해 공유


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
)

매개 변수

설명

새로 만든 InkOverlay는 지정된 창 표면에서 잉크를 수집할 수 있습니다.

펜뿐 아니라 마우스도 입력에 사용될 수 있습니다.

ms579232.alert_security(ko-kr,VS.90).gif보안 정보:

부분 신뢰 환경에서 사용하는 경우 이 생성자에 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에서 지원

참고 항목

참조

InkOverlay 클래스

InkOverlay 멤버

InkOverlay 오버로드

Microsoft.Ink 네임스페이스

InkOverlay