StylusPoint Structure

StylusPoint Structure

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Represents a single point collected while the user is entering ink strokes with the stylus or mouse.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

No code example is currently available or this language may not be supported.
<StylusPoint .../>

The StylusPoint type exposes the following members.

  NameDescription
Public methodStylusPointInitializes a new instance of the StylusPoint class.
Top

  NameDescription
Public propertyPressureFactorGets or sets the pressure factor of the stylus on the screen.
Public propertyXGets or sets the value for the x-coordinate of the StylusPoint.
Public propertyYGets or sets the value for the y-coordinate of the StylusPoint.
Top

  NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

The StylusPoint structure represents a single point. All StylusPoint objects contain properties that indicate the (x, y) coordinates and the pressure.

NoteNote:

You can get the relevant PressureFactor only if the device supports it. Otherwise, PressureFactor will have a default value of 0.5.

Multiple StylusPoint objects typically make up a Stroke object. The Stroke object stores the stylus points in the StylusPoints property.

The following code example displays the x-coordinate, y-coordinate, and pressure data of each stylus point as they are added to a stroke.

No code example is currently available or this language may not be supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft