ImageEn, unit iexPdfiumCore

TPdfObject.Text

TPdfObject.Text

Declaration

property Text: String;

Description

Specify the text of an object (i.e. when ObjectType is ptText).

Note: Specify the fill color using FillColor

Read/write

Example

// Set the text of all text objects in page
ImageEnView1.LockPaint();
for i := 0 to ImageEnView1.PdfViewer.Objects.Count - 1 do
  if objType = ptText then
    ImageEnView1.PdfViewer.Objects[i].Text := 'Text Object ' + i.ToString;
ImageEnView1.UnlockPaint();

See Also

GetTextFont
AddText