다음을 통해 공유


Move Method [InkRenderer Class]

Move Method [InkRenderer Class]

Applies a translation to the view transform in ink space coordinates.

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 amount in ink space coordinates to translate the view transform in the X dimension.

offsetY

[in] The amount 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 ink in the InkCollector, theInkCollector, when the command button Command1 is clicked.

Option Explicit
Dim theInkCollector As InkCollector

Private Sub Command1_Click()
    theInkCollector.Renderer.Move 20!, -50!
    Form1.Refresh
End Sub

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

Applies To