다음을 통해 공유


RealTimeStylus 생성자 (Control, Boolean)

업데이트: 2007년 11월

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

네임스페이스:  Microsoft.StylusInput
어셈블리:  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 RealTimeStylus(attachedControl, _
    useMouseForInput)
public RealTimeStylus(
    Control attachedControl,
    bool useMouseForInput
)
public:
RealTimeStylus(
    Control^ attachedControl, 
    bool useMouseForInput
)
public RealTimeStylus(
    Control attachedControl,
    boolean useMouseForInput
)
public function RealTimeStylus(
    attachedControl : Control, 
    useMouseForInput : boolean
)

매개 변수

  • attachedControl
    형식: System.Windows.Forms.Control
    RealTimeStylus 개체를 연결할 컨트롤입니다. 이 매개 변수를 nullNull 참조(Visual Basic의 경우 Nothing)(Microsoft Visual Basic .NET의 경우 Nothing)로 설정하면 생성자에서 예외가 throw됩니다.
  • useMouseForInput
    형식: System.Boolean
    마우스를 태블릿 입력에 사용할 수 있는지 여부를 나타내는 값입니다.

    의미

    true

    마우스를 태블릿 입력에 사용할 수 있습니다.

    false

    마우스를 태블릿 입력에 사용할 수 없습니다.

설명

RealTimeStylus 개체의 경우 초기에는 잉크 수집이 비활성화되고 입력 영역은 RealTimeStylus 개체가 연결된 창의 경계로 설정됩니다. 자세한 내용은 EnabledWindowInputRectangle 속성을 참조하십시오.

예제

이 Microsoft Visual C# .NET 예제는 폼의 Load 이벤트 처리기에서 가져온 코드 조각입니다. 이 이벤트 처리기는 Panel 개체인 thePanel에 연결된 RealTimeStylus 개체를 만듭니다. 마우스를 제외한 모든 Tablet 개체가 태블릿 입력에 사용됩니다.

using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;

// ...

// The panel where the tablet pen data is collected.
private System.Windows.Forms.Panel thePanel;

// The form's Load event handler.
private void theForm_Load(object sender, System.EventArgs e)
{
    // ...

    // Create the RealTimeStylus object.
    this.theRealTimeStylus = new RealTimeStylus(this.thePanel, false);

    // ...
}

플랫폼

Windows Vista, Windows XP SP2, Windows Server 2003

.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

3.0에서 지원

참고 항목

참조

RealTimeStylus 클래스

RealTimeStylus 멤버

RealTimeStylus 오버로드

Microsoft.StylusInput 네임스페이스

Microsoft.Ink.Tablet