StylusPointProperties Sınıf

Tanım

WPF'nin desteklediği her özellik için bir StylusPointProperty içerir.

public ref class StylusPointProperties abstract sealed
public static class StylusPointProperties
type StylusPointProperties = class
Public Class StylusPointProperties
Devralma
StylusPointProperties

Örnekler

Aşağıdaki örnekte, alanları kullanarak nasıl oluşturulacağı StylusPointDescription gösterilmektedir StylusPointProperties .

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)

Açıklamalar

WPF, genellikle ekran kalemi ve dijitalleştirici tarafından toplanan özellikler için önceden tanımlanmış StylusPointProperty nesnelerle birlikte gelir. Oluşturmak StylusPointDescriptioniçin bu yerleşik özellikleri kullanabilirsiniz.

Alanlar

AltitudeOrientation

Kalemin ekseni ile Tablet PC'nin yüzeyi arasındaki açıyı temsil eder.

AzimuthOrientation

İmlecin z ekseni etrafındaki tam dairesel aralık boyunca saat yönünde döndürmesini temsil eder.

BarrelButton

Ekran kaleminin namlu düğmesini temsil eder.

ButtonPressure

Basınca duyarlı bir düğme üzerindeki baskıyı temsil eder.

Height

Basamaklandırıcıdaki kişi noktasının yüksekliğini temsil eder.

NormalPressure

Tablet PC yüzeyine dik kalem ucunun basıncını temsil eder.

PacketStatus

İmlecin geçerli durumunu temsil eder.

PitchRotation

ucun, yazma yüzeyine dik yatay bir çizginin üstünde mi yoksa altında mı olduğunu temsil eder.

RollRotation

Kalemin kendi ekseni etrafında saat yönünde dönüşünü temsil eder.

SecondaryTipButton

Ekran kaleminin ikincil ipucu düğmesini temsil eder.

SerialNumber

öğesini StylusPointtanımlar.

SystemTouch

parmakla, avuçla veya başka bir dokunuşla başlatılan öğesini oluşturan StylusPointtemas noktasını temsil eder.

TangentPressure

Tablet PC yüzeyinin düzlemi boyunca kalem ucu basıncını temsil eder.

TipButton

Ekran kaleminin ipucu düğmesini temsil eder.

TwistOrientation

İmlecin kendi ekseni etrafında saat yönünde dönüşünü temsil eder.

Width

Basamaklandırıcıdaki kişi noktasının genişliğini temsil eder.

X

Tablet koordinat alanında x koordinatını temsil eder.

XTiltOrientation

(y,z) düzlemi ile kalem ve y ekseni düzlemi arasındaki açıyı temsil eder.

Y

Tablet koordinat alanında y koordinatını temsil eder.

YawRotation

Kalem yatay olduğunda kalemin yatay ekseninin ortasında sola veya sağa doğru açısını temsil eder.

YTiltOrientation

(x, z) düzlemi ile kalem ve x ekseni düzlemi arasındaki açıyı temsil eder.

Z

Kalem ucunun tablet yüzeyinden z koordinatını veya mesafesini temsil eder.

Şunlara uygulanır