StylusPointPropertyInfo 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
示例
以下示例演示如何创建新的 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
- 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)