StylusPointPropertyInfo Constructors

Definition

Initializes a new instance of the StylusPointPropertyInfo class.

Overloads

StylusPointPropertyInfo(StylusPointProperty)

Initializes a new instance of the StylusPointPropertyInfo class.

C#
public StylusPointPropertyInfo(System.Windows.Input.StylusPointProperty stylusPointProperty);

Parameters

stylusPointProperty
StylusPointProperty

The StylusPointProperty to base the new StylusPointProperty on.

Examples

The following example demonstrates how to create a new StylusPointPropertyInfo.

C#
StylusPointPropertyInfo XTiltPropertyInfo = 
    new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation,
                       0, 3600, StylusPointPropertyUnit.Degrees, 10f);

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

StylusPointPropertyInfo(StylusPointProperty, Int32, Int32, StylusPointPropertyUnit, Single)

Initializes a new instance of the StylusPointPropertyInfo class using the specified values.

C#
public StylusPointPropertyInfo(System.Windows.Input.StylusPointProperty stylusPointProperty, int minimum, int maximum, System.Windows.Input.StylusPointPropertyUnit unit, float resolution);

Parameters

stylusPointProperty
StylusPointProperty

The StylusPointProperty to base the new StylusPointProperty on.

minimum
Int32

The minimum value accepted for the StylusPoint property.

maximum
Int32

The maximum value accepted for the StylusPoint property.

resolution
Single

The scale that converts a StylusPoint property value into its units.

Examples

The following example demonstrates how to create a new StylusPointPropertyInfo.

C#
StylusPointPropertyInfo XTiltPropertyInfo = 
    new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation,
                       0, 3600, StylusPointPropertyUnit.Degrees, 10f);

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10