StylusDevice 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示与 Tablet PC 一起使用的触笔。
public ref class StylusDevice sealed : System::Windows::Input::InputDevice
	public sealed class StylusDevice : System.Windows.Input.InputDevice
	type StylusDevice = class
    inherit InputDevice
	Public NotInheritable Class StylusDevice
Inherits InputDevice
		- 继承
 
示例
以下示例演示如何检索对默认触笔设备的引用。
// Get the current stylus device
StylusDevice myStylusDevice = Stylus.CurrentStylusDevice;
' Get the current stylus device
Dim myStylusDevice As StylusDevice = Stylus.CurrentStylusDevice
	属性
| ActiveSource | 
		 获取报告触笔当前输入的 PresentationSource。  | 
        	
| Captured | 
		 获取捕获触笔的元素。  | 
        	
| DirectlyOver | 
		 获取指针置于其上的 IInputElement。  | 
        	
| Dispatcher | 
		 获取与此 Dispatcher 关联的 DispatcherObject。 (继承自 DispatcherObject) | 
        	
| Id | 
		 获取触笔设备的标识符。  | 
        	
| InAir | 
		 获取触笔是否位于数字化仪上但尚未连接数字化仪。  | 
        	
| InRange | 
		 获取一个指示触笔是否在数字化仪范围内的值。  | 
        	
| Inverted | 
		 获取一个值,该值指示是否正在使用触笔的辅助笔尖。  | 
        	
| IsValid | 
		 获取一个值,该值指示触笔设备是否有效。  | 
        	
| Name | 
		 获取触笔的名称。  | 
        	
| StylusButtons | 
		 获取触笔上的触笔按钮。  | 
        	
| TabletDevice | 
		 获取表示与当前 TabletDevice 关联的数字化仪的 StylusDevice。  | 
        	
| Target | 
		 获取接收输入的元素。  | 
        	
方法
| Capture(IInputElement) | 
		 将触笔输入绑定到指定元素。  | 
        	
| Capture(IInputElement, CaptureMode) | 
		 将触笔绑定到指定元素。  | 
        	
| CheckAccess() | 
		 确定调用线程是否可以访问此 DispatcherObject。 (继承自 DispatcherObject) | 
        	
| Equals(Object) | 
		 确定指定对象是否等于当前对象。 (继承自 Object) | 
        	
| GetHashCode() | 
		 作为默认哈希函数。 (继承自 Object) | 
        	
| GetPosition(IInputElement) | 
		 获取触笔的位置。  | 
        	
| GetStylusPoints(IInputElement) | 
		 返回一个 StylusPointCollection,其中包含从触笔收集的 StylusPoint 对象。  | 
        	
| GetStylusPoints(IInputElement, StylusPointDescription) | 
		 返回一个 StylusPointCollection,其中包含从触笔收集的 StylusPoint 对象。 使用指定的 StylusPointDescription。  | 
        	
| GetType() | 
		 获取当前实例的 Type。 (继承自 Object) | 
        	
| MemberwiseClone() | 
		 创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| Synchronize() | 
		 同步光标和用户界面。  | 
        	
| ToString() | 
		 返回触笔设备的名称。  | 
        	
| VerifyAccess() | 
		 强制调用线程具有此 DispatcherObject 的访问权限。 (继承自 DispatcherObject) |