Renderer.Move - метод
Обновлен: Ноябрь 2007
Applies a translation to the GetViewTransform in ink space coordinates.
Пространство имен: 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
The amount to translate the view transform in the X dimension, in ink space coordinates.
- offsetY
Тип: System.Single
The amount to translate the view transform in the Y dimension, in ink space coordinates.
Примеры
This C# example saves the current view transform matrix from the Renderer object in the InkCollector, theInkCollector, and then applies a translation to it.
using System.Drawing.Drawing2D;
...
Matrix theOldMatrix = new Matrix();
theInkCollector.Renderer.GetViewTransform(ref theOldMatrix);
theInkCollector.Renderer.Move(140.0f, 140.0f);
This Microsoft® Visual Basic® .NET example saves the current view transform matrix from the Renderer object in the InkCollector, theInkCollector, and then applies a translation to it.
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