Vcl.Graphics.TCustomCanvas.CanvasOrientation

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CanvasOrientation: TCanvasOrientation read GetCanvasOrientation;

C++

__property TCanvasOrientation CanvasOrientation = {read=GetCanvasOrientation, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Determines the orientation of the canvas as left-to-right or right-to-left.

CanvasOrientation is a read-only property used for bidirectional support. It indicates whether the orientation of the canvas is left-to-right (coLeftToRight) or right-to-left (coRightToLeft). The default is coLeftToRight, meaning that the 0,0 coordinate is at the top-left corner of the canvas. In Middle Eastern locales, the orientation may be coRightToLeft, meaning that the 0,0 coordinate is at the top-right corner of the canvas. This property is important for grid controls because it changes the grid's canvas orientation during drawing.

See Also