Sdílet prostřednictvím


StylusEventArgs.GetStylusPoints Metoda

Definice

StylusPointCollection Vrátí objekty StylusPoint shromážděné v události.

Přetížení

Name Description
GetStylusPoints(IInputElement)

StylusPointCollection Vrátí hodnotu, která obsahuje StylusPoint objekty vzhledem k zadanému vstupnímu prvku.

GetStylusPoints(IInputElement, StylusPointDescription)

Vrátí hodnotu, která používá zadanou StylusPointCollectionStylusPointDescription hodnotu a obsahuje StylusPoint objekty vztahující se k zadanému vstupnímu prvku.

GetStylusPoints(IInputElement)

StylusPointCollection Vrátí hodnotu, která obsahuje StylusPoint objekty vzhledem k zadanému vstupnímu prvku.

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

Parametry

relativeTo
IInputElement

Souřadnice IInputElement (x,y) v mapě StylusPointCollection .

Návraty

A StylusPointCollection obsahující StylusPoint objekty shromážděné v události.

Výjimky

Platí pro

GetStylusPoints(IInputElement, StylusPointDescription)

Vrátí hodnotu, která používá zadanou StylusPointCollectionStylusPointDescription hodnotu a obsahuje StylusPoint objekty vztahující se k zadanému vstupnímu prvku.

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

Parametry

relativeTo
IInputElement

Souřadnice IInputElement (x,y) v mapě StylusPointCollection .

subsetToReformatTo
StylusPointDescription

Používaná StylusPointDescription v sadě StylusPointCollection.

Návraty

A StylusPointCollection , který obsahuje StylusPoint objekty shromážděné během události.

Výjimky

Poznámky

subsetToReformatTo musí být kompatibilní s Description vlastností StylusPointCollection metody GetStylusPoints(IInputElement) . Použijte metodu GetCommonDescriptionStylusPointDescription k získání před voláním GetStylusPoints(IInputElement, StylusPointDescription) metody.

Poznámka:

GetStylusPoints používá omezení z StylusPointCollection hodnoty in StylusEventArgs, i když jsou omezení subsetToReformatTo odlišná. Pokud subsetToReformatTo například používá NormalPressure hodnoty 0 a 1023, ale StylusEventArgs používá hodnoty 0 a 255, GetStylusPoints vrátí StylusPointDescription hodnotu obsahující hodnoty 0 a 255.

Platí pro