StylusPointDescription Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
StylusPointDescription sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| StylusPointDescription() |
StylusPointDescription sınıfının yeni bir örneğini başlatır. |
| StylusPointDescription(IEnumerable<StylusPointPropertyInfo>) |
Belirtilen StylusPointDescription nesnelerle sınıfının yeni bir örneğini StylusPointPropertyInfo başlatır. |
StylusPointDescription()
StylusPointDescription sınıfının yeni bir örneğini başlatır.
public:
StylusPointDescription();
public StylusPointDescription();
Public Sub New ()
Örnekler
Aşağıdaki örnek bir StylusPointDescription nesnesi oluşturur ve oluşturmak StylusPointiçin bunu kullanır.
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
Parametresiz oluşturucu, , ve özelliklerine StylusPointDescriptionilişkin bilgileri içeren bir X oluşturur. YNormalPressure
Şunlara uygulanır
StylusPointDescription(IEnumerable<StylusPointPropertyInfo>)
Belirtilen StylusPointDescription nesnelerle sınıfının yeni bir örneğini StylusPointPropertyInfo başlatır.
public:
StylusPointDescription(System::Collections::Generic::IEnumerable<System::Windows::Input::StylusPointPropertyInfo ^> ^ stylusPointPropertyInfos);
public StylusPointDescription(System.Collections.Generic.IEnumerable<System.Windows.Input.StylusPointPropertyInfo> stylusPointPropertyInfos);
new System.Windows.Input.StylusPointDescription : seq<System.Windows.Input.StylusPointPropertyInfo> -> System.Windows.Input.StylusPointDescription
Public Sub New (stylusPointPropertyInfos As IEnumerable(Of StylusPointPropertyInfo))
Parametreler
- stylusPointPropertyInfos
- IEnumerable<StylusPointPropertyInfo>
içindeki özellikleri StylusPointPropertyInfobelirten genel bir IEnumerable türüStylusPointDescription.
Örnekler
Aşağıdaki örnek bir StylusPointDescription nesnesi oluşturur ve oluşturmak StylusPointiçin bunu kullanır.
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
, ve StylusPointPropertyInfoözellikleri XYiçin nesneleri geçirmeniz NormalPressure gerekir.