Share via


StylusPoint Oluşturucular

Tanım

StylusPoint sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

StylusPoint(Double, Double)

Belirtilen (x, y) koordinatlarını kullanarak sınıfın StylusPoint yeni bir örneğini başlatır.

StylusPoint(Double, Double, Single)

Belirtilen (x, y) koordinatları ve baskıyı kullanarak sınıfın StylusPoint yeni bir örneğini başlatır.

StylusPoint(Double, Double, Single, StylusPointDescription, Int32[])

Belirtilen (x, y) koordinatları, bir ve içinde belirtilen ek parametreleri kullanarak sınıfının yeni bir pressureFactorörneğini StylusPointStylusPointDescriptionbaşlatır.

StylusPoint(Double, Double)

Belirtilen (x, y) koordinatlarını kullanarak sınıfın StylusPoint yeni bir örneğini başlatır.

public:
 StylusPoint(double x, double y);
public StylusPoint (double x, double y);
new System.Windows.Input.StylusPoint : double * double -> System.Windows.Input.StylusPoint
Public Sub New (x As Double, y As Double)

Parametreler

x
Double

x koordinatı StylusPoint.

y
Double

y koordinatı StylusPoint.

Örnekler

Aşağıdaki örnekte nasıl oluşturulacağı gösterilmektedir StylusPoint.

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)

Şunlara uygulanır

StylusPoint(Double, Double, Single)

Belirtilen (x, y) koordinatları ve baskıyı kullanarak sınıfın StylusPoint yeni bir örneğini başlatır.

public:
 StylusPoint(double x, double y, float pressureFactor);
public StylusPoint (double x, double y, float pressureFactor);
new System.Windows.Input.StylusPoint : double * double * single -> System.Windows.Input.StylusPoint
Public Sub New (x As Double, y As Double, pressureFactor As Single)

Parametreler

x
Double

x koordinatı StylusPoint.

y
Double

y koordinatı StylusPoint.

pressureFactor
Single

öğesine uygulanan StylusPointbasınç miktarı.

Özel durumlar

pressureFactor 0'dan küçük veya 1'den büyük.

Örnekler

Aşağıdaki örnekte nasıl oluşturulacağı gösterilmektedir StylusPoint.

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

pressureFactor 0 ile 1 (dahil) arasında bir değere sahip olmalıdır. 0 değeri basınç uygulanmadığını, 1 değeri ise maksimum basınç miktarının uygulandığını gösterir. 0,5 değeri maksimum basıncın %50'sinin uygulandığını ve bu şekilde devam ettiğini gösterir.

Şunlara uygulanır

StylusPoint(Double, Double, Single, StylusPointDescription, Int32[])

Belirtilen (x, y) koordinatları, bir ve içinde belirtilen ek parametreleri kullanarak sınıfının yeni bir pressureFactorörneğini StylusPointStylusPointDescriptionbaşlatır.

public:
 StylusPoint(double x, double y, float pressureFactor, System::Windows::Input::StylusPointDescription ^ stylusPointDescription, cli::array <int> ^ additionalValues);
public StylusPoint (double x, double y, float pressureFactor, System.Windows.Input.StylusPointDescription stylusPointDescription, int[] additionalValues);
new System.Windows.Input.StylusPoint : double * double * single * System.Windows.Input.StylusPointDescription * int[] -> System.Windows.Input.StylusPoint
Public Sub New (x As Double, y As Double, pressureFactor As Single, stylusPointDescription As StylusPointDescription, additionalValues As Integer())

Parametreler

x
Double

x koordinatı StylusPoint.

y
Double

y koordinatı StylusPoint.

pressureFactor
Single

öğesine uygulanan StylusPointbasınç miktarı.

stylusPointDescription
StylusPointDescription

StylusPointDescription içinde StylusPointdepolanan ek özellikleri belirten bir.

additionalValues
Int32[]

içinde stylusPointDescriptiontanımlanan özelliklerin değerlerini içeren 32 bit imzalı tamsayı dizisi.

Özel durumlar

pressureFactor 0'dan küçük veya 1'den büyük.

-veya-

Düğme özelliklerine karşılık gelen içindeki additionalValues değerler 0 veya 1 değildir.

içindeki additionalValues değerlerin sayısı eksi 3'teki stylusPointDescription özelliklerin sayısıyla eşleşmiyor.

Örnekler

Aşağıdaki örnekte nasıl oluşturulacağı gösterilmektedir StylusPoint.

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)

Şunlara uygulanır