Component Reference

Common properties for text components

Sumary

This properties applies to components with text properties like TRpLabel, TRpExpression and TRpChart

Name Internal Name Type Description
H.Alignment Aligment H.TextAlign Horizontal alignment for the text inside the box defined by the component. The text can be aligned Left (also None), Right and Center. Bidi property can alter the meaning of this property. Internally stored as an integer.
V.Alignment VAlignment V.TextAlign Vertical alignment for the text inside the box defined by the component. The text can be aligned top (also None), bottom and center. Internally stored as an integer.
WFont Name WFontName WideString Font name (Type face family name) for Microsoft Windows operating systems, this property will be used when the engine runs in this operating system and the driver uses system fonts, usually GDI and Qt.
LFont Name LFontName WideString Font name (Type face family name) for Linux operating systems, this property will be used when the engine runs in this operating system and the driver uses system fonts, usually using Qt printing or display system.
PDF Font Type1Font TRpType1Font Font when the result is a PDF file, the generation of pdf files does not requires an X Server running in Linux, but can use only one of the standard PDF fonts in current implementation.
Font size FontSize Integer Font size in standard points unit, that is 72 points=1 inchess
Font step FontStep TRpSelectFontStep Font step for dot matrix output and text output with a printer driver selected, the engine will select the nearest size
Font Color FontColor Color Font color, internally stored as a quad byte 0BGR integer
Font Style FontStyle Integer Combination of a set of possible effects for the font: bold, italic, underline and strikeout, all the styles are compatible. Internally stored as an Integer.
Bidi BidiModes BidiMode

Left to right reading language support (bidirectional). The Bidi property is stored for each language in the report page setup. Internally stored as a string list containing the value for each language.

Name Description
Bidi No No Bidi support enabled
Bidi Partial Bidi enabled, will print right to left text but no change in the H.Alignment property is done
Bidi Full Bidi enabled, will print right to left text and will reverse the H.Alignment property

Bidi support is fully implemented in Windows but Qt library does not implement RightToLeft so in Linux is partially supported, also in PDF export is only partially supported.

Back Color BackColor Color Background color for the printed text, if Transparent property is set to false
Transparent Transparent Boolean If false a background color (Back Color) will be used for the text
Cut Text CutText Boolean If true, the text will be clipped to the defined box, else the text will expand outside the box, if word wrap is true, the widh of the box will be preserved.
Word wrap Wordwrap Boolean Will break the sentences in more lines if the lines does not fit in current box width.
Single line SingleLine Boolean Will force printing of text in a single line even if it contains line feeds.
F.Rotation FontRotation Angle Rotation angle in degrees for the text. Rotation in reverse clock wise, internally stored as an integer in degrees*10 scale.

Developer info

Internal component name TRpGenTextComponent
Parent class TRpCommonPosComponent
Unit name rpprintitem.pas

See also Report components common properties.