RealTimeStylus 생성자 (IntPtr, Tablet)
업데이트: 2007년 11월
RealTimeStylus 클래스의 새 인스턴스를 초기화하고 지정된 창에 연결한 다음 잉크 수집을 지정된 태블릿으로 제한합니다.
네임스페이스: Microsoft.StylusInput
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public Sub New ( _
handle As IntPtr, _
tablet As Tablet _
)
‘사용 방법
Dim handle As IntPtr
Dim tablet As Tablet
Dim instance As New RealTimeStylus(handle, _
tablet)
public RealTimeStylus(
IntPtr handle,
Tablet tablet
)
public:
RealTimeStylus(
IntPtr handle,
Tablet^ tablet
)
public RealTimeStylus(
IntPtr handle,
Tablet tablet
)
public function RealTimeStylus(
handle : IntPtr,
tablet : Tablet
)
매개 변수
- handle
형식: System.IntPtr
RealTimeStylus 개체를 연결할 창의 핸들입니다. 이 매개 변수를 0으로 설정하면 생성자에서 예외가 throw됩니다.
- tablet
형식: Microsoft.Ink.Tablet
잉크를 수집할 태블릿이거나, 연결된 모든 태블릿에서 잉크를 수집하도록 허용하려면 nullNull 참조(Visual Basic의 경우 Nothing)(Visual Basic의 경우 Nothing)입니다.
설명
새 RealTimeStylus 개체의 경우 초기에는 잉크 수집이 비활성화되고 입력 영역은 RealTimeStylus 개체가 연결된 창의 경계로 설정됩니다. 자세한 내용은 Enabled 및 WindowInputRectangle 속성을 참조하십시오.
예제
이 C# 예제는 폼의 Load 이벤트 처리기에서 가져온 코드 조각입니다. 이 이벤트 처리기는 Panel 개체인 thePanel의 Handle에 연결된 RealTimeStylus 개체를 만듭니다. Tablet 개체인 theTablet만 입력에 사용됩니다.
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, theTablet);
// ...
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원