You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. PrintJustify method |
Top Previous Next |
Declaration procedure PrintJustify(Text: string; Pos: double; Justify: TPrintJustify; Margin: double; Width: double);
Category
Description This method will print left, right, center or block justified text. The text will be justified inside a measurement rectangle starting at Pos and with a horizontal size of Width. Margin is the spacing between the text and the sides of the measurement rectangle in units.
See also TBaseReport Class, PrintBlock, PrintCenter, PrintLeft, PrintRight
Example (Delphi) PrintJustify('Centered Text', SectionLeft,pjCenter,0.0,SectionRight - SectionLeft); { Same as PrintCenter('Centered Text', (SectionLeft + SectionRight) / 2.0); }
Example (C++Builder) rp1->PrintJustify("Centered Text", SectionLeft,pjCenter,0.0,SectionRight - SectionLeft); /* Same as PrintCenter("Centered Text", (SectionLeft + SectionRight) / 2.0); *</pre> |
You are reading help file online using chmlib.com
|