ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / TranslateViewport Method
An int specifies the horizontal offset.
An int specifies the vertical offset.

In This Topic
    TranslateViewport Method
    In This Topic
    Modifies the viewport origin for a device context using the specified horizontal and vertical offsets.
    Syntax
    'Declaration
     
    Public Sub TranslateViewport( _
       ByVal dx As System.Integer, _
       ByVal dy As System.Integer _
    ) 
    public void TranslateViewport( 
       System.int dx,
       System.int dy
    )

    Parameters

    dx
    An int specifies the horizontal offset.
    dy
    An int specifies the vertical offset.
    See Also