다음을 통해 공유


RealTimeStylus 생성자 (IntPtr)

업데이트: 2007년 11월

RealTimeStylus 클래스의 새 인스턴스를 초기화하고 지정된 창에 연결합니다.

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

구문

‘선언
Public Sub New ( _
    handle As IntPtr _
)
‘사용 방법
Dim handle As IntPtr

Dim instance As New RealTimeStylus(handle)
public RealTimeStylus(
    IntPtr handle
)
public:
RealTimeStylus(
    IntPtr handle
)
public RealTimeStylus(
    IntPtr handle
)
public function RealTimeStylus(
    handle : IntPtr
)

매개 변수

  • handle
    형식: System.IntPtr
    RealTimeStylus 개체를 연결할 창의 핸들입니다. 이 매개 변수를 0으로 설정하면 생성자에서 예외가 throw됩니다.

설명

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

예제

이 C# 예제는 폼의 Load 이벤트 처리기에서 가져온 코드 조각입니다. 이 이벤트 처리기는 Panel 개체인 thePanel의 Handle에 연결된 RealTimeStylus 개체를 만듭니다.

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.Handle);

    // ...
}

플랫폼

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