Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StylusEventArgs.GetStylusPoints Method (IInputElement, StylusPointDescription)

Returns a StylusPointCollection that uses the specified StylusPointDescription and contains StylusPoint objects relative to the specified input element.

Namespace: System.Windows.Input
Assembly: PresentationCore (in presentationcore.dll)

public StylusPointCollection GetStylusPoints (
	IInputElement relativeTo,
	StylusPointDescription subsetToReformatTo
)
public StylusPointCollection GetStylusPoints (
	IInputElement relativeTo, 
	StylusPointDescription subsetToReformatTo
)
public function GetStylusPoints (
	relativeTo : IInputElement, 
	subsetToReformatTo : StylusPointDescription
) : StylusPointCollection
You cannot use methods in XAML.

Parameters

relativeTo

The IInputElement to which the (x, y) coordinates in the StylusPointCollection are mapped.

subsetToReformatTo

The StylusPointDescription to be used by the StylusPointCollection.

Return Value

A StylusPointCollection that contains StylusPoint objects collected in the event.

Exception typeCondition

InvalidOperationException

relativeTo is neither UIElement or FrameworkContentElement.

subsetToReformatTo must be compatible with the Description property of the StylusPointCollection from the GetStylusPoints(IInputElement) method. Use the GetCommonDescription method to get a StylusPointDescription before calling the GetStylusPoints(IInputElement,StylusPointDescription) method.

NoteNote:

GetStylusPoints uses the constraints from the StylusPointCollection in StylusEventArgs, even if the constraints in subsetToReformatTo are different. For example, if subsetToReformatTo uses for NormalPressure the values 0 as the minimum and 1023 as the maximum and StylusEventArgs uses the values 0 as the minimum and 255 as the maximum, GetStylusPoints returns a StylusPointDescription that uses the values, 0 and 255.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft