StylusEventArgs 类

定义

为与 Stylus 类相关联的多个事件提供数据。Provides data for several of the events that are associated with the Stylus class.

public ref class StylusEventArgs : System::Windows::Input::InputEventArgs
public class StylusEventArgs : System.Windows.Input.InputEventArgs
type StylusEventArgs = class
    inherit InputEventArgs
Public Class StylusEventArgs
Inherits InputEventArgs
继承
派生

注解

StylusEventArgs类为以下事件提供数据:The StylusEventArgs class provides data for the following events:

(以及在ContentElement类上声明的等效事件)。(as well as equivalent events declared on the ContentElement class).

构造函数

StylusEventArgs(StylusDevice, Int32)

初始化 StylusEventArgs 类的新实例。Initializes a new instance of the StylusEventArgs class.

属性

Device

获取启动此事件的输入设备。Gets the input device that initiated this event.

(继承自 InputEventArgs)
Handled

获取或设置一个值,该值指示针对路由事件(在其经过路由时)的事件处理的当前状态。Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.

(继承自 RoutedEventArgs)
InAir

获取一个值,该值指示触笔是否离数字化仪很近,但却没接触到数字化仪。Gets a value that indicates whether the stylus is in proximity to, but not touching, the digitizer.

Inverted

获取一个指示触笔是否反转的值。Gets a value that indicates whether the stylus in inverted.

OriginalSource

在父类进行任何可能的 Source 调整之前,获取由纯命中测试确定的原始报告源。Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.

(继承自 RoutedEventArgs)
RoutedEvent

获取或设置与此 RoutedEventArgs 实例关联的 RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance.

(继承自 RoutedEventArgs)
Source

获取或设置对引发事件的对象的引用。Gets or sets a reference to the object that raised the event.

(继承自 RoutedEventArgs)
StylusDevice

获取表示触笔的 StylusDeviceGets the StylusDevice that represents the stylus.

Timestamp

获取此事件发生时的时间。Gets the time when this event occurred.

(继承自 InputEventArgs)

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPosition(IInputElement)

获取触笔的位置。Gets the position of the stylus.

GetStylusPoints(IInputElement)

返回包含与指定 input 元素相关的 StylusPointCollection 对象的 StylusPointReturns a StylusPointCollection that contains StylusPoint objects relative to the specified input element.

GetStylusPoints(IInputElement, StylusPointDescription)

返回使用指定 StylusPointCollection 且包含与指定 input 元素相关的 StylusPointDescription 对象的 StylusPointReturns a StylusPointCollection that uses the specified StylusPointDescription and contains StylusPoint objects relating to the specified input element.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InvokeEventHandler(Delegate, Object)

以特定于类型的方式调用事件处理程序,这样做可以提高事件系统效率。Invokes event handlers in a type-specific way, which can increase event system efficiency.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnSetSource(Object)

在派生类中重写时,每当实例的 Source 属性的值发生更改,则提供一个通知回调入口点。When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes.

(继承自 RoutedEventArgs)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于