API:Vcl.Graphics.TCanvas.MoveTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure MoveTo(X, Y: Integer); override;

C++

virtual void __fastcall MoveTo(int X, int Y);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCanvas

Description

Changes the current drawing position to the point (X,Y).

Vcl.Graphics.TCanvas.MoveTo inherits from Vcl.Graphics.TCustomCanvas.MoveTo. All content below this line refers to Vcl.Graphics.TCustomCanvas.MoveTo.

Changes the current drawing position to the point (X,Y).

Override the MoveTo method to implement setting the value of PenPos before calling LineTo. Calling MoveTo is equivalent to setting the PenPos property.

See Also