StylusPointPropertyInfo 构造函数

定义

初始化 StylusPointPropertyInfo 类的新实例。

重载

StylusPointPropertyInfo(StylusPointProperty)

初始化 StylusPointPropertyInfo 类的新实例。

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

使用指定的值初始化 StylusPointPropertyInfo 类的新实例。

StylusPointPropertyInfo(StylusPointProperty)

初始化 StylusPointPropertyInfo 类的新实例。

public:
 StylusPointPropertyInfo(System::Windows::Input::StylusPointProperty ^ stylusPointProperty);
public StylusPointPropertyInfo (System.Windows.Input.StylusPointProperty stylusPointProperty);
new System.Windows.Input.StylusPointPropertyInfo : System.Windows.Input.StylusPointProperty -> System.Windows.Input.StylusPointPropertyInfo
Public Sub New (stylusPointProperty As StylusPointProperty)

参数

stylusPointProperty
StylusPointProperty

StylusPointProperty 所依据的 StylusPointProperty

示例

以下示例演示如何创建新的 StylusPointPropertyInfo

StylusPointPropertyInfo XTiltPropertyInfo = 
    new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation,
                       0, 3600, StylusPointPropertyUnit.Degrees, 10f);
Dim XTiltPropertyInfo As New StylusPointPropertyInfo( _
                        StylusPointProperties.XTiltOrientation, 0, 3600, _
                        StylusPointPropertyUnit.Degrees, 10.0F)

适用于

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

使用指定的值初始化 StylusPointPropertyInfo 类的新实例。

public:
 StylusPointPropertyInfo(System::Windows::Input::StylusPointProperty ^ stylusPointProperty, int minimum, int maximum, System::Windows::Input::StylusPointPropertyUnit unit, float resolution);
public StylusPointPropertyInfo (System.Windows.Input.StylusPointProperty stylusPointProperty, int minimum, int maximum, System.Windows.Input.StylusPointPropertyUnit unit, float resolution);
new System.Windows.Input.StylusPointPropertyInfo : System.Windows.Input.StylusPointProperty * int * int * System.Windows.Input.StylusPointPropertyUnit * single -> System.Windows.Input.StylusPointPropertyInfo
Public Sub New (stylusPointProperty As StylusPointProperty, minimum As Integer, maximum As Integer, unit As StylusPointPropertyUnit, resolution As Single)

参数

stylusPointProperty
StylusPointProperty

StylusPointProperty 所依据的 StylusPointProperty

minimum
Int32

StylusPoint 属性接受的最小值。

maximum
Int32

StylusPoint 属性接受的最大值。

resolution
Single

StylusPoint 属性值转换为其单位的缩放。

示例

以下示例演示如何创建新的 StylusPointPropertyInfo

StylusPointPropertyInfo XTiltPropertyInfo = 
    new StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation,
                       0, 3600, StylusPointPropertyUnit.Degrees, 10f);
Dim XTiltPropertyInfo As New StylusPointPropertyInfo( _
                        StylusPointProperties.XTiltOrientation, 0, 3600, _
                        StylusPointPropertyUnit.Degrees, 10.0F)

适用于