Renderer.Move 方法

墨迹空间 坐标中应用到 GetViewTransform 的转换。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Sub Move ( _
    offsetX As Single, _
    offsetY As Single _
)
用法
Dim instance As Renderer
Dim offsetX As Single
Dim offsetY As Single

instance.Move(offsetX, offsetY)
public void Move(
    float offsetX,
    float offsetY
)
public:
void Move(
    float offsetX, 
    float offsetY
)
public void Move(
    float offsetX,
    float offsetY
)
public function Move(
    offsetX : float, 
    offsetY : float
)

参数

  • offsetX
    类型:System.Single
    在墨迹空间坐标中进行 X 维度视图变换的偏移量。
  • offsetY
    类型:System.Single
    在墨迹空间坐标中进行 Y 维度视图变换的偏移量。

示例

此 C# 示例从 InkCollector (theInkCollector) 中的 Renderer 对象保存当前视图变换矩阵,然后对该对象应用转换。

using System.Drawing.Drawing2D;
...
Matrix theOldMatrix = new Matrix();
theInkCollector.Renderer.GetViewTransform(ref theOldMatrix);
theInkCollector.Renderer.Move(140.0f, 140.0f);

此 Microsoft(R) Visual Basic(R) .NET 示例从 InkCollector (theInkCollector) 中的 Renderer 对象保存当前视图变换矩阵,然后对该对象应用转换。

Imports System.Drawing.Drawing2D
...
Dim theOldMatrix As New Matrix()
theInkCollector.Renderer.GetViewTransform(theOldMatrix)
theInkCollector.Renderer.Move(140.0, 140.0)

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

Renderer 类

Renderer 成员

Microsoft.Ink 命名空间

Renderer.GetViewTransform