Share via


ICanvas.Translate(Single, Single) Method

Definition

Shifts a graphical object in horizontal and vertical directions.

public:
 void Translate(float tx, float ty);
public void Translate (float tx, float ty);
abstract member Translate : single * single -> unit
Public Sub Translate (tx As Single, ty As Single)

Parameters

tx
Single

Horizontal shift. Negative values move the object to the left, while positive values move it to the right.

ty
Single

Vertical shift. Negative values move the object down, while positive values move it up.

Applies to