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