Strokes.Move - метод
Обновлен: Ноябрь 2007
Applies a translation to the ink of the Strokes collection.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink (в Microsoft.Ink.dll)
Синтаксис
'Декларация
Public Sub Move ( _
offsetX As Single, _
offsetY As Single _
)
'Применение
Dim instance As Strokes
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 distance to translate the view transform in the X dimension, in HIMETRIC units and in ink space coordinates.
- offsetY
Тип: System.Single
The distance to translate the view transform in the Y dimension, in HIMETRIC units and in ink space coordinates.
Примеры
In this example, all the ink for an InkOverlay object is moved 1000 HIMETRIC units to the right.
' Access to the Strokes property returns a copy of the Strokes object.
' This copy must be implicitly (via using statement) or explicitly
' disposed of in order to avoid a memory leak.
Using allStrokes As Strokes = mInkOverlay.Ink.Strokes
allStrokes.Move(1000.0F, 0.0F)
End Using
// Access to the Strokes property returns a copy of the Strokes object.
// This copy must be implicitly (via using statement) or explicitly
// disposed of in order to avoid a memory leak.
using (Strokes allStrokes = mInkOverlay.Ink.Strokes)
{
allStrokes.Move(1000.0f, 0.0f);
}
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0