ICanvas.Translate(Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.