Compartir a través de


Stroke.Move Method

Applies a translation to the ink of the Stroke object.

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 Stroke
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
)
Not applicable.

Parameters

  • offsetX
    The distance to translate the view transform in the X dimension, in HIMETRIC units, in ink space coordinates.
  • offsetY
    The distance to translate the view transform in the Y dimension, in HIMETRIC units, in ink space coordinates.

Example

This C# example moves the ink in a Stroke object, theStroke, 100 HIMETRIC units to the right, in ink space coordinates.

theStroke.Move(100.0f, 0.0f);

This Microsoft® Visual Basic® .NET example moves the ink in a Stroke object, theStroke, 100 HIMETRIC units to the right, in ink space coordinates.

theStroke.Move(100.0f, 0.0f)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Microsoft.Ink.Stroke.Transform
Strokes.Move