Label

Label

The Label element defines a report object used to draw fixed text on a report.

 <!ELEMENT Label EMPTY>
 <!ATTLIST Label
     Text            CDATA #REQUIRED
     X               CDATA #REQUIRED
     Y               CDATA #REQUIRED
     Width           CDATA #REQUIRED
     Height          CDATA #REQUIRED
     BackgroundColor CDATA #REQUIRED
     ForegroundColor CDATA #REQUIRED
     BorderColor     CDATA #REQUIRED
     BorderWidth     CDATA #REQUIRED
     BorderStyle     CDATA #REQUIRED
     FontFamily      CDATA #REQUIRED
     FontSize        CDATA #REQUIRED
     FontWeight      CDATA #REQUIRED
     FontItalic      CDATA #REQUIRED
     HAlignment      CDATA #REQUIRED
     VAlignment      CDATA #REQUIRED
     WordWrap        CDATA #REQUIRED>
Attributes
Text

Sets the label's text.

X

Sets the x coordinate for positioning the label.

Y

Sets the y coordinate for positioning the label.

Width

Sets the width of the label.

Height

Sets the height of the label.

BackgroundColor

Sets the background color of the label. The The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

ForegroundColor

Sets the foreground color of the label. The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

BorderColor

Sets the border color of the label. The color is defined as an RGB value (r,g,b). r, g and b must be in the range 0..255.

BorderWidth

Sets the border width for the label.

BorderStyle

Sets the border style for the label.

ValueBorder Style
0None
1Solid
2Dash
3Dot
4Dash Dot
5Dash Dot Dot
FontFamily

Sets the font family for the label's text.

FontFamily="Helvetica"

FontSize

Sets the font size for the label's text.

FontWeight

Sets the font weight for the label's text.

ValueFont Weight
25Light
50Normal
63Demi Bold
75Bold
87Black
FontItalic

Sets the font italic flag for the label's text.

ValueItalic
0False
1True
HAlignment

Sets the label's horizontal text alignment.

ValueHorizontal Alignment
0Left
1Center
2Right
VAlignment

Sets the label's vertical text alignment

ValueVertical Alignment
0Top
1Middle
2Bottom
WordWrap

Sets the word wrap flag for the label's text.

ValueWord Wrap
0False
1True
KDE Logo