TextOutCenter(Left, Top, Right, Bottom, Text, Transparent, Ellipse)

Writes text on an image and centers it in a rectangle area defined by the parameters.

Parameters
  • Left, Top, Right, Bottom. Integer.
  • Text. Specifies the text to write. Accepts a WideString value.
  • Transparent. Specifies whether the text is transparent. This parameter can take one of the following values:
    • true. Makes the text transparent.
    • false. Makes the text non-transparent.
  • Ellipse. Adds an ellipsis (...) at the end of the text if it doesn't fit into the rectangle area and gets truncated. This parameter can take one of the following values:
    • true. Adds an ellipsis if the text gets truncated.
    • false. Doesn't add an ellipsis if the text gets truncated.
Example
Copy
Graphic.TextOutCenter(10,10,100,30,'My text',true,true);