StylusPoint Structure
Represents a single data point collected from the digitizer and stylus.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The StylusPoint type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | StylusPoint(Double, Double) | Initializes a new instance of the StylusPoint class using specified (x, y) coordinates. |
![]() | StylusPoint(Double, Double, Single) | Initializes a new instance of the StylusPoint class using specified (x, y) coordinates and pressure. |
![]() | StylusPoint(Double, Double, Single, StylusPointDescription, array<Int32>) | Initializes a new instance of the StylusPoint class using specified (x, y) coordinates, a pressureFactor, and additional parameters specified in the StylusPointDescription. |
| Name | Description | |
|---|---|---|
![]() | Description | Gets or sets the StylusPointDescription that specifies the properties stored in the StylusPoint. |
![]() | PressureFactor | Gets or sets a value between 0 and 1 that reflects the amount of pressure the stylus applies to the digitizer's surface when the StylusPoint is created. |
![]() | X | Gets or sets the value for the x-coordinate of the StylusPoint. |
![]() | Y | Gets or sets the y-coordinate of the StylusPoint. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Returns a value indicating whether the specified object is equal to the StylusPoint. (Overrides ValueType::Equals(Object).) |
![]() | Equals(StylusPoint) | Returns a Boolean value that indicates whether the specified StylusPoint is equal to the current StylusPoint. |
![]() ![]() | Equals(StylusPoint, StylusPoint) | Returns a Boolean value that indicates whether the two specified StylusPoint objects are equal. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueType::GetHashCode().) |
![]() | GetPropertyValue | Returns the value of the specified property. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HasProperty | Returns whether the current StylusPoint contains the specified property. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetPropertyValue | Sets the specified property to the specified value. |
![]() | ToPoint | Converts a StylusPoint to a Point. |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Compares two specified StylusPoint objects and determines whether they are equal. |
![]() ![]() | Explicit(StylusPoint to Point) | Casts the specified StylusPoint to a Point. |
![]() ![]() | Inequality | Returns a Boolean value which indicates whether the specified StylusPoint objects are unequal. |
A StylusPoint collects data when a user inputs ink using the digitizer. Because the information that a digitizer reports differs depending on the manufacturer, the properties within a StylusPoint can vary. To determine whether a property is in the StylusPoint, call the HasProperty method. The Description property contains a StylusPointDescription that specifies which properties are in the StylusPoint. All StylusPoint objects contain properties that specify the (x, y) coordinates, as well as the pressure.
The following example gets property names and values for each StylusPoint in a StylusPointCollection. This example assumes that there is a TextBlock called packetOutput.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
