InkPresenterRuler 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class InkPresenterRuler sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Input.Inking.IInkPresenterRulerFactory, 196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkPresenterRuler final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Input.Inking.IInkPresenterRulerFactory), 196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkPresenterRuler
Public NotInheritable Class InkPresenterRuler
- 继承
- 属性
- 实现
Windows 要求
| 设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
注解
模具的不透明度在静态时设置为 75%,在操作期间设置为 50%。
版本历史记录
| Windows 版本 | SDK 版本 | 增值 |
|---|---|---|
| 1703 | 15063 | AreTickMarksVisible |
| 1703 | 15063 | IsCompassVisible |
构造函数
| InkPresenterRuler(InkPresenter) |
初始化 InkPresenterRuler 类的新实例。 |
属性
| AreTickMarksVisible |
获取或设置刻度线是否显示在标尺模具上。
刻度线表示标尺上的距离标记。 |
| BackgroundColor |
获取或设置 InkPresenterRuler 的背景色。 |
| ForegroundColor |
获取或设置 InkPresenterRuler 上前景元素的颜色。 |
| IsCompassVisible |
获取或设置指南针是否显示在标尺模具上。
|
| IsVisible |
获取或设置 InkPresenterRuler 是否可见。 |
| Kind |
获取要显示在 InkCanvas 上的模具类型。 |
| Length |
获取或设置 InkPresenterRuler 的长度。 |
| Transform |
获取或设置标尺模具在 InkCanvas 的二维坐标空间中的位置和旋转角度。 位置和旋转都基于相对于 InkCanvas 原点的标尺左上角。 |
| Width |
获取或设置 InkPresenterRuler 的宽度。 |