Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomCanvas.WindowOrg Property

Specifies the position of a window origin for the canvas.

#Declaration

Delphi
property WindowOrg: TPoint read; write;

#Property Value

Type
TPoint

#Remarks

The viewport and window origin positions define the relationship between the device and logical coordinate spaces for the canvas. Use the WindowOrg property to specify which point of the logical (window) space corresponds to the origin (0, 0) point of the device coordinate space. This operation shifts logical coordinate axes horizontally and/or vertically and scrolls the canvas accordingly. Alternatively, you can call the MoveWindowOrg function instead.

Note

Since both the device and logical coordinate spaces are relative to each other, do not use the WindowOrg property simultaneously with a property that changes the viewport position (ViewportOrg, for instance).

See Also