StylusEventArgs.GetStylusPoints Metod

Definition

Returnerar en StylusPointCollection som innehåller StylusPoint objekt som samlats in i händelsen.

Överlagringar

Name Description
GetStylusPoints(IInputElement)

Returnerar ett StylusPointCollection objekt som innehåller StylusPoint objekt i förhållande till det angivna indataelementet.

GetStylusPoints(IInputElement, StylusPointDescription)

Returnerar ett StylusPointCollection som använder det angivna StylusPointDescription och innehåller StylusPoint objekt som är relaterade till det angivna indataelementet.

GetStylusPoints(IInputElement)

Returnerar ett StylusPointCollection objekt som innehåller StylusPoint objekt i förhållande till det angivna indataelementet.

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

Parametrar

relativeTo
IInputElement

Till IInputElement vilken (x,y) koordinaterna i StylusPointCollection mappas.

Returer

En StylusPointCollection som innehåller StylusPoint objekt som samlats in i händelsen.

Undantag

Gäller för

GetStylusPoints(IInputElement, StylusPointDescription)

Returnerar ett StylusPointCollection som använder det angivna StylusPointDescription och innehåller StylusPoint objekt som är relaterade till det angivna indataelementet.

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

Parametrar

relativeTo
IInputElement

Till IInputElement vilken (x,y) koordinaterna i StylusPointCollection mappas.

subsetToReformatTo
StylusPointDescription

Som StylusPointDescription ska användas av StylusPointCollection.

Returer

En StylusPointCollection som innehåller StylusPoint objekt som samlats in under en händelse.

Undantag

Kommentarer

subsetToReformatTo måste vara kompatibel med Description egenskapen för StylusPointCollection från GetStylusPoints(IInputElement) -metoden. Använd metoden GetCommonDescription för att hämta en StylusPointDescription innan du GetStylusPoints(IInputElement, StylusPointDescription) anropar metoden.

Note

GetStylusPoints använder begränsningar från StylusPointCollection i StylusEventArgs, även om begränsningarna i subsetToReformatTo är olika. Om subsetToReformatTo till exempel använder NormalPressure värdena 0 och 1023 men StylusEventArgs använder värdena 0 och 255 returnerar GetStylusPoints ett StylusPointDescription som innehåller värdena 0 och 255.

Gäller för