ImageEn, unit iexPdfiumCore |
|
TPdfObject.X
Declaration
property X: Double;
Description
Specifies the left position of an object (in PDF points).
PDF Y values are Bottom-up, so (X,Y) specifies the bottom-left of the object onscreen.
Note:
◼ The
object matrix is used to calculate and set the value
◼ You can also use
Translate to move an object
◼ You must call ImageEnView1.Invalidate() after setting the position
Read/write
Example
// Move an object left
obj := ImageEnView1.PdfViewer.Objects[idx];
obj.X := obj.X - 10;
ImageEnView1.Invalidate();
// Which is the same as...
ImageEnView1.PdfViewer.Objects.Translate( -10, 0 );
ImageEnView1.Invalidate();
// Move an object right
obj := ImageEnView1.PdfViewer.Objects[idx];
obj.X := obj.X + 10;
ImageEnView1.Invalidate();
// Which is the same as...
ImageEnView1.PdfViewer.Objects.Translate( 10, 0 );
ImageEnView1.Invalidate();
See Also
◼ Y◼ Width◼ Height◼ Matrix◼ Scale◼ Translate◼ TransformEx