StylusPoint 생성자

정의

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

오버로드

StylusPoint(Double, Double)

지정된 (x, y) 좌표를 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates.

StylusPoint(Double, Double, Single)

지정된 (x, y) 좌표와 압력을 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates and pressure.

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

지정된 (x, y) 좌표, pressureFactorStylusPointDescription에 지정된 추가 매개 변수를 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates, a pressureFactor, and additional parameters specified in the StylusPointDescription.

StylusPoint(Double, Double)

지정된 (x, y) 좌표를 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates.

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)

매개 변수

x
Double

StylusPoint의 x 좌표입니다.The x-coordinate of the StylusPoint.

y
Double

StylusPoint의 y 좌표입니다.The y-coordinate of the StylusPoint.

예제

다음 예제에서는 만드는 방법을 보여 줍니다는 StylusPoint합니다.The following example demonstrates how 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)

적용 대상

StylusPoint(Double, Double, Single)

지정된 (x, y) 좌표와 압력을 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates and pressure.

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)

매개 변수

x
Double

StylusPoint의 x 좌표입니다.The x-coordinate of the StylusPoint.

y
Double

StylusPoint의 y 좌표입니다.The y-coordinate of the StylusPoint.

pressureFactor
Single

StylusPoint에 적용된 압력의 크기입니다.The amount of pressure applied to the StylusPoint.

예외

pressureFactor가 0보다 작거나 1보다 큽니다.pressureFactor is less than 0 or greater than 1.

예제

다음 예제에서는 만드는 방법을 보여 줍니다는 StylusPoint합니다.The following example demonstrates how 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)

설명

pressureFactor 0과 1 사이의 값이 있어야 합니다.pressureFactor must have a value between 0 and 1, inclusive. 값 0가 중 없음 적용 되지 않음을 나타냅니다, 값이 1 이면 압력 최대 적용 됩니다.A value of 0 indicates that no pressure is applied, while a value of 1 indicates that the maximum amount of pressure is applied. 값이 0.5 최대 압력의 50%를 적용 하 고 등을 나타냅니다.A value of 0.5 indicates that 50% of the maximum pressure is applied, and so on.

적용 대상

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

지정된 (x, y) 좌표, pressureFactorStylusPointDescription에 지정된 추가 매개 변수를 사용하여 StylusPoint 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the StylusPoint class using specified (x, y) coordinates, a pressureFactor, and additional parameters specified in the StylusPointDescription.

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

매개 변수

x
Double

StylusPoint의 x 좌표입니다.The x-coordinate of the StylusPoint.

y
Double

StylusPoint의 y 좌표입니다.The y-coordinate of the StylusPoint.

pressureFactor
Single

StylusPoint에 적용된 압력의 크기입니다.The amount of pressure applied to the StylusPoint.

stylusPointDescription
StylusPointDescription

StylusPoint에 저장된 추가 속성을 지정하는 StylusPointDescription입니다.A StylusPointDescription that specifies the additional properties stored in the StylusPoint.

additionalValues
Int32[]

stylusPointDescription에 정의된 속성의 값을 포함하는 32비트 부호 있는 정수 배열입니다.An array of 32-bit signed integers that contains the values of the properties defined in stylusPointDescription.

예외

pressureFactor가 0보다 작거나 1보다 큽니다.pressureFactor is less than 0 or greater than 1.

또는-or- 단추 속성에 해당하는 additionalValues의 값이 0 또는 1이 아닌 경우The values in additionalValues that correspond to button properties are not 0 or 1.

additionalValues의 값 개수가 stylusPointDescription의 속성 수에서 3을 뺀 값과 일치하지 않는 경우The number of values in additionalValues does not match the number of properties in stylusPointDescription minus 3.

예제

다음 예제에서는 만드는 방법을 보여 줍니다는 StylusPoint합니다.The following example demonstrates how 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)

적용 대상