다음을 통해 공유


InkOverlay 생성자 (Control, Boolean)

업데이트: 2007년 11월

InkOverlay 클래스의 새 인스턴스를 초기화하고 지정된 컨트롤에 연결한 다음 마우스를 사용하여 입력할 것인지를 결정합니다.

네임스페이스:  Microsoft.Ink
어셈블리:  Microsoft.Ink(Microsoft.Ink.dll)

구문

‘선언
Public Sub New ( _
    attachedControl As Control, _
    useMouseForInput As Boolean _
)
‘사용 방법
Dim attachedControl As Control
Dim useMouseForInput As Boolean

Dim instance As New InkOverlay(attachedControl, _
    useMouseForInput)
public InkOverlay(
    Control attachedControl,
    bool useMouseForInput
)
public:
InkOverlay(
    Control^ attachedControl, 
    bool useMouseForInput
)
public InkOverlay(
    Control attachedControl,
    boolean useMouseForInput
)
public function InkOverlay(
    attachedControl : Control, 
    useMouseForInput : boolean
)

매개 변수

  • useMouseForInput
    형식: System.Boolean
    태블릿 입력에 마우스를 사용하려면 true로 설정하고, 그렇지 않으면 false로 설정합니다.

예제

이 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(this, false);
        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(Me, False)
        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