StylusPointProperties Class
TOC
Collapse the table of content
Expand the table of content

StylusPointProperties Class

 

Contains a StylusPointProperty for each property that the WPF supports.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Input.StylusPointProperties

public static class StylusPointProperties

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAltitudeOrientation

Represents the angle between the axis of the pen and the surface of the Tablet PC.

System_CAPS_pubfieldSystem_CAPS_staticAzimuthOrientation

Represents the clockwise rotation of the cursor, through a full circular range around the z-axis.

System_CAPS_pubfieldSystem_CAPS_staticBarrelButton

Represents the barrel button of a stylus.

System_CAPS_pubfieldSystem_CAPS_staticButtonPressure

Represents the pressure on a pressure-sensitive button.

System_CAPS_pubfieldSystem_CAPS_staticHeight

Represents the height of the contact point on the digitizer.

System_CAPS_pubfieldSystem_CAPS_staticNormalPressure

Represents the pressure of the pen tip perpendicular to the Tablet PC surface.

System_CAPS_pubfieldSystem_CAPS_staticPacketStatus

Represents the current status of the cursor.

System_CAPS_pubfieldSystem_CAPS_staticPitchRotation

Represents whether the tip is above or below a horizontal line that is perpendicular to the writing surface.

System_CAPS_pubfieldSystem_CAPS_staticRollRotation

Represents the clockwise rotation of the pen around its own axis.

System_CAPS_pubfieldSystem_CAPS_staticSecondaryTipButton

Represents the secondary tip button of a stylus.

System_CAPS_pubfieldSystem_CAPS_staticSerialNumber

Identifies the StylusPoint.

System_CAPS_pubfieldSystem_CAPS_staticSystemTouch

Represents the point of contact that generates the StylusPoint, whether initiated by a finger, palm, or any other touch.

System_CAPS_pubfieldSystem_CAPS_staticTangentPressure

Represents the pen tip pressure along the plane of the Tablet PC surface.

System_CAPS_pubfieldSystem_CAPS_staticTipButton

Represents the tip button of a stylus.

System_CAPS_pubfieldSystem_CAPS_staticTwistOrientation

Represents the clockwise rotation of the cursor around its own axis.

System_CAPS_pubfieldSystem_CAPS_staticWidth

Represents the width of the contact point on the digitizer.

System_CAPS_pubfieldSystem_CAPS_staticX

Represents the x-coordinate in the tablet coordinate space.

System_CAPS_pubfieldSystem_CAPS_staticXTiltOrientation

Represents the angle between the (y,z) plane and the pen and y-axis plane.

System_CAPS_pubfieldSystem_CAPS_staticY

Represents the y-coordinate in the tablet coordinate space.

System_CAPS_pubfieldSystem_CAPS_staticYawRotation

Represents the angle of the pen to the left or right around the center of its horizontal axis when the pen is horizontal.

System_CAPS_pubfieldSystem_CAPS_staticYTiltOrientation

Represents the angle between the (x, z) plane and the pen and x-axis plane.

System_CAPS_pubfieldSystem_CAPS_staticZ

Represents the z-coordinate or distance of the pen tip from the tablet surface.

The WPF ships with pre-defined StylusPointProperty objects for properties that are commonly collected by a stylus and a digitizer. You can use these built-in properties to create a StylusPointDescription.

The following example demonstrates how to create a StylusPointDescription using the StylusPointProperties fields.

StylusPointDescription newDescription =
      new StylusPointDescription(new StylusPointPropertyInfo[]
                    {
                        new StylusPointPropertyInfo(StylusPointProperties.X),
                        new StylusPointPropertyInfo(StylusPointProperties.Y),
                        new StylusPointPropertyInfo(StylusPointProperties.NormalPressure),
                        new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.YTiltOrientation),
                        new StylusPointPropertyInfo(StylusPointProperties.BarrelButton)
                    });


int[] propertyValues = { 1800, 1000, 1 };

StylusPoint newStylusPoint = new StylusPoint(100, 100, .5f, newDescription, propertyValues);

.NET Framework
Available since 3.0

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

Return to top
Show:
© 2016 Microsoft