Compartilhar via


Move Method [IInkStrokeDisp Interface, InkStrokes Collection]

Move Method [IInkStrokeDisp Interface, InkStrokes Collection]

Applies a translation to the ink of an IInkStrokeDisp object or InkStrokes collection.

Declaration

[C++]

HRESULT Move (
    [in] float offsetX,
    [in] float offsetY
);

[Microsoft® Visual Basic® 6.0]

Public Sub Move( _
    offsetX As Single, _
    offsetY As Single _
)

Parameters

offsetX

[in] The distance in ink space coordinates to translate the view transform in the X dimension.

offsetY

[in] The distance in ink space coordinates to translate the view transform in the Y dimension.

Return Value

HRESULT value Description
S_OK Success.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example demonstrates a simple call to Move which is applied to the InkStrokes collection in the InkDisp in the InkCollector, theInkCollector, when the command button Command1 is clicked.

Option Explicit
Dim theInkCollector As InkCollector

Private Sub Command1_Click()
    theInkCollector.Ink.Strokes.Move 100!, 0!
    Form1.Refresh
End Sub

Private Sub Form_Load()
    Set theInkCollector = New InkCollector
    theInkCollector.hWnd = Me.hWnd
    theInkCollector.Enabled = True
End Sub

Applies To