ImageEn, unit iexPdfiumCore

TPdfObject.Y

TPdfObject.Y


Declaration

property Y: Double;


Description

Specifies the bottom 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:
 PDF Y values are Bottom-up, i.e. Y=0 refers to the bottom of the page/screen. Y=PageHeight refers to the top of the page/screen
 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 up
obj := ImageEnView1.PdfViewer.Objects[idx];
// Note: PDF documents are bottom-up
obj.Y := obj.Y + 10;
ImageEnView1.Invalidate();

// Which is the same as...
ImageEnView1.PdfViewer.Objects.Translate( 0, 10 );  // Note: PDF documents are bottom-up
ImageEnView1.Invalidate();


// Move an object down
obj := ImageEnView1.PdfViewer.Objects[idx];
// Note: PDF documents are bottom-up
obj.Y := obj.Y - 10;
ImageEnView1.Invalidate();

// Which is the same as...
ImageEnView1.PdfViewer.Objects.Translate( 0, -10 );  // Note: PDF documents are bottom-up
ImageEnView1.Invalidate();


See Also

 X
 Width
 Height
 Matrix
 Scale
 Translate
 TransformEx