Share via


StylusEventArgs.GetStylusPoints 方法

定义

返回包含事件中收集的 StylusPointCollection 对象的 StylusPoint

重载

GetStylusPoints(IInputElement)

返回包含与指定 input 元素相关的 StylusPointCollection 对象的 StylusPoint

GetStylusPoints(IInputElement, StylusPointDescription)

返回使用指定 StylusPointCollection 且包含与指定 input 元素相关的 StylusPointDescription 对象的 StylusPoint

GetStylusPoints(IInputElement)

返回包含与指定 input 元素相关的 StylusPointCollection 对象的 StylusPoint

public:
 System::Windows::Input::StylusPointCollection ^ GetStylusPoints(System::Windows::IInputElement ^ relativeTo);
public System.Windows.Input.StylusPointCollection GetStylusPoints (System.Windows.IInputElement relativeTo);
member this.GetStylusPoints : System.Windows.IInputElement -> System.Windows.Input.StylusPointCollection
Public Function GetStylusPoints (relativeTo As IInputElement) As StylusPointCollection

参数

relativeTo
IInputElement

IInputElement (x,y) 坐标映射到的 StylusPointCollection

返回

包含事件中收集的 StylusPointCollection 对象的 StylusPoint

例外

relativeTo 既不是 UIElement 也不是 FrameworkContentElement

适用于

GetStylusPoints(IInputElement, StylusPointDescription)

返回使用指定 StylusPointCollection 且包含与指定 input 元素相关的 StylusPointDescription 对象的 StylusPoint

public:
 System::Windows::Input::StylusPointCollection ^ GetStylusPoints(System::Windows::IInputElement ^ relativeTo, System::Windows::Input::StylusPointDescription ^ subsetToReformatTo);
public System.Windows.Input.StylusPointCollection GetStylusPoints (System.Windows.IInputElement relativeTo, System.Windows.Input.StylusPointDescription subsetToReformatTo);
member this.GetStylusPoints : System.Windows.IInputElement * System.Windows.Input.StylusPointDescription -> System.Windows.Input.StylusPointCollection
Public Function GetStylusPoints (relativeTo As IInputElement, subsetToReformatTo As StylusPointDescription) As StylusPointCollection

参数

relativeTo
IInputElement

IInputElement (x,y) 坐标映射到的 StylusPointCollection

返回

包含在事件期间收集的 StylusPointCollection 对象的 StylusPoint

例外

relativeTo 既不是 UIElement 也不是 FrameworkContentElement

注解

subsetToReformatTo必须与 方法中的 的 StylusPointCollectionGetStylusPoints(IInputElement) 属性兼容Description。 在GetCommonDescription调用 GetStylusPoints(IInputElement, StylusPointDescription) 方法之前,使用 方法获取 StylusPointDescription

注意

GetStylusPoints使用 中 StylusEventArgs的约束StylusPointCollection,即使 中的subsetToReformatTo约束不同。 例如,如果使用subsetToReformatToNormalPressure值 0 和 1023,但StylusEventArgs使用值 0 和 255,GetStylusPoints则返回包含StylusPointDescription值 0 和 255 的 。

适用于