StylusPointDescription 생성자

정의

StylusPointDescription 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPointDescription class.

오버로드

StylusPointDescription()

StylusPointDescription 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPointDescription class.

StylusPointDescription(IEnumerable<StylusPointPropertyInfo>)

지정된 StylusPointDescription 개체를 사용하여 StylusPointPropertyInfo 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPointDescription class with the specified StylusPointPropertyInfo objects.

StylusPointDescription()

StylusPointDescription 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPointDescription class.

public:
 StylusPointDescription();
public StylusPointDescription ();
Public Sub New ()

예제

다음 예제는 StylusPointDescription 개체를 만드는 데 사용 하는 StylusPoint.The following example creates a StylusPointDescription object and uses it to create a 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)

설명

매개 변수가 없는 생성자는 X, YNormalPressure속성에 대 한 정보를 포함 하는 StylusPointDescription를 만듭니다.The parameterless constructor creates a StylusPointDescription that contains information for the properties X, Y, and NormalPressure.

StylusPointDescription(IEnumerable<StylusPointPropertyInfo>)

지정된 StylusPointDescription 개체를 사용하여 StylusPointPropertyInfo 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPointDescription class with the specified StylusPointPropertyInfo objects.

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))

매개 변수

stylusPointPropertyInfos
IEnumerable<StylusPointPropertyInfo>

StylusPointPropertyInfo에서 속성을 지정하는 StylusPointDescription 형식의 제네릭 IEnumerable입니다.A generic IEnumerable of type StylusPointPropertyInfo that specifies the properties in the StylusPointDescription.

예제

다음 예제는 StylusPointDescription 개체를 만드는 데 사용 하는 StylusPoint.The following example creates an StylusPointDescription object and uses it to create a 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)

설명

전달 해야 StylusPointPropertyInfo 개체의 속성에 대 한 X, Y, 및 NormalPressure.You must pass in StylusPointPropertyInfo objects for the properties, X, Y, and NormalPressure.

적용 대상