StylusPointProperties 類別

定義

包含 WPF 支援之每個屬性的 StylusPointPropertyContains a StylusPointProperty for each property that the WPF supports.

public ref class StylusPointProperties abstract sealed
public static class StylusPointProperties
type StylusPointProperties = class
Public Class StylusPointProperties
繼承
StylusPointProperties

範例

下列範例示範如何StylusPointDescription StylusPointProperties使用欄位建立。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);
Dim newDescription As 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)})

Dim propertyValues As Integer() = {1800, 1000, 1}

Dim newStylusPoint As New StylusPoint(100, 100, 0.5F, newDescription, propertyValues)

備註

隨附于手寫筆和數位StylusPointProperty板通常會收集的屬性預先定義的物件。 WPFWPFThe WPFWPF ships with pre-defined StylusPointProperty objects for properties that are commonly collected by a stylus and a digitizer. 您可以使用這些內建屬性來建立StylusPointDescriptionYou can use these built-in properties to create a StylusPointDescription.

欄位

AltitudeOrientation

表示畫筆軸與 Tablet PC 介面之間的角度。Represents the angle between the axis of the pen and the surface of the Tablet PC.

AzimuthOrientation

表示游標沿著 Z 軸在整個圓周範圍內進行的順時針旋轉。Represents the clockwise rotation of the cursor, through a full circular range around the z-axis.

BarrelButton

表示手寫筆的桶狀按鈕。Represents the barrel button of a stylus.

ButtonPressure

表示壓力感應按鈕上的壓力。Represents the pressure on a pressure-sensitive button.

Height

表示數位板上接觸點的高度。Represents the height of the contact point on the digitizer.

NormalPressure

表示與 Tablet PC 介面垂直之畫筆筆尖的壓力。Represents the pressure of the pen tip perpendicular to the Tablet PC surface.

PacketStatus

表示游標的目前狀態。Represents the current status of the cursor.

PitchRotation

表示筆尖是位於與寫入介面垂直的水平線之上還是之下。Represents whether the tip is above or below a horizontal line that is perpendicular to the writing surface.

RollRotation

表示畫筆沿著自身的軸進行的順時針旋轉。Represents the clockwise rotation of the pen around its own axis.

SecondaryTipButton

表示手寫筆的次要筆尖按鈕。Represents the secondary tip button of a stylus.

SerialNumber

識別 StylusPointIdentifies the StylusPoint.

SystemTouch

表示產生 StylusPoint 的接觸點,由手指、手掌或其他任何觸碰方式指出。Represents the point of contact that generates the StylusPoint, whether initiated by a finger, palm, or any other touch.

TangentPressure

表示沿著 Tablet PC 介面平面的畫筆筆尖壓力。Represents the pen tip pressure along the plane of the Tablet PC surface.

TipButton

表示手寫筆的筆尖按鈕。Represents the tip button of a stylus.

TwistOrientation

表示游標沿著自身的軸進行的順時針旋轉。Represents the clockwise rotation of the cursor around its own axis.

Width

表示數位板上接觸點的寬度。Represents the width of the contact point on the digitizer.

X

表示 Tablet 座標空間中的 X 座標。Represents the x-coordinate in the tablet coordinate space.

XTiltOrientation

表示 (y,z) 平面與畫筆及 Y 軸平面之間的角度。Represents the angle between the (y,z) plane and the pen and y-axis plane.

Y

表示 Tablet 座標空間中的 Y 座標。Represents the y-coordinate in the tablet coordinate space.

YawRotation

表示當畫筆方向為水平時,畫筆偏向其水平軸左側或右側的角度。Represents the angle of the pen to the left or right around the center of its horizontal axis when the pen is horizontal.

YTiltOrientation

表示 (x, z) 平面與畫筆及 X 軸平面之間的角度。Represents the angle between the (x, z) plane and the pen and x-axis plane.

Z

表示 Z 座標或畫筆筆尖與 Tablet 介面之間的距離。Represents the z-coordinate or distance of the pen tip from the tablet surface.

適用於