StylusEventArgs.GetStylusPoints Method

Definition

Returns a StylusPointCollection that contains StylusPoint objects collected in the event.

Overloads

GetStylusPoints(IInputElement)

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

GetStylusPoints(IInputElement, StylusPointDescription)

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

GetStylusPoints(IInputElement)

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

C#
public System.Windows.Input.StylusPointCollection GetStylusPoints(System.Windows.IInputElement relativeTo);

Parameters

relativeTo
IInputElement

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

Returns

A StylusPointCollection that contains StylusPoint objects collected in the event.

Exceptions

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetStylusPoints(IInputElement, StylusPointDescription)

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

C#
public System.Windows.Input.StylusPointCollection GetStylusPoints(System.Windows.IInputElement relativeTo, System.Windows.Input.StylusPointDescription subsetToReformatTo);

Parameters

relativeTo
IInputElement

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

subsetToReformatTo
StylusPointDescription

The StylusPointDescription to be used by the StylusPointCollection.

Returns

A StylusPointCollection that contains StylusPoint objects collected during an event.

Exceptions

Remarks

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.

Anteckning

GetStylusPoints uses constraints from the StylusPointCollection in StylusEventArgs, even if the constraints in subsetToReformatTo are different. For example, if subsetToReformatTo uses NormalPressure values of 0 and 1023 but StylusEventArgs uses values of 0 and 255, GetStylusPoints returns a StylusPointDescription containing the values 0 and 255.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10