Export (0) Print
Expand All

StylusPointProperties Class

Contains a StylusPointProperty for each property that the WPF supports.

System.Object
  System.Windows.Input.StylusPointProperties

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

public static class StylusPointProperties

The StylusPointProperties type exposes the following members.

  NameDescription
Public fieldStatic memberAltitudeOrientationRepresents the angle between the axis of the pen and the surface of the Tablet PC.
Public fieldStatic memberAzimuthOrientationRepresents the clockwise rotation of the cursor, through a full circular range around the z-axis.
Public fieldStatic memberBarrelButtonRepresents the barrel button of a stylus.
Public fieldStatic memberButtonPressureRepresents the pressure on a pressure-sensitive button.
Public fieldStatic memberHeightRepresents the height of the contact point on the digitizer.
Public fieldStatic memberNormalPressureRepresents the pressure of the pen tip perpendicular to the Tablet PC surface.
Public fieldStatic memberPacketStatusRepresents the current status of the cursor.
Public fieldStatic memberPitchRotationRepresents whether the tip is above or below a horizontal line that is perpendicular to the writing surface.
Public fieldStatic memberRollRotationRepresents the clockwise rotation of the pen around its own axis.
Public fieldStatic memberSecondaryTipButtonRepresents the secondary tip button of a stylus.
Public fieldStatic memberSerialNumberIdentifies the StylusPoint.
Public fieldStatic memberSystemTouchRepresents the point of contact that generates the StylusPoint, whether initiated by a finger, palm, or any other touch.
Public fieldStatic memberTangentPressureRepresents the pen tip pressure along the plane of the Tablet PC surface.
Public fieldStatic memberTipButtonRepresents the tip button of a stylus.
Public fieldStatic memberTwistOrientationRepresents the clockwise rotation of the cursor around its own axis.
Public fieldStatic memberWidthRepresents the width of the contact point on the digitizer.
Public fieldStatic memberXRepresents the x-coordinate in the tablet coordinate space.
Public fieldStatic memberXTiltOrientationRepresents the angle between the (y,z) plane and the pen and y-axis plane.
Public fieldStatic memberYRepresents the y-coordinate in the tablet coordinate space.
Public fieldStatic memberYawRotationRepresents the angle of the pen to the left or right around the center of its horizontal axis when the pen is horizontal.
Public fieldStatic memberYTiltOrientationRepresents the angle between the (x, z) plane and the pen and x-axis plane.
Public fieldStatic memberZRepresents the z-coordinate or distance of the pen tip from the tablet surface.
Top

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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:
© 2014 Microsoft