Strokes.Move Method
Applies a translation to the ink of the Strokes collection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Sub Move ( _
offsetX As Single, _
offsetY As Single _
)
'Usage
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 function Move(
offsetX : float,
offsetY : float
)
Parameters
offsetX
Type: System.SingleThe distance to translate the view transform in the X dimension, in HIMETRIC units and in ink space coordinates.
offsetY
Type: System.SingleThe distance to translate the view transform in the Y dimension, in HIMETRIC units and in ink space coordinates.
Examples
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);
}
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0