PrintPRO 8 for .NET - User Guide > How To > Create Print Job > Add Text |
PrintPRO™ gives the developer flexibility when adding text. The simplest way to add text is to use the Text Method.
The Text method adds text at the CurrentX Property and CurrentY Property position.
The TextHeight Method and the TextWidth Method can be used to return the height and width of a text string.
If you want to align the text, use the TextAligned Method. This method automatically aligns text inside a rectangular area using the alignment style defined by the Alignment enumeration set . Text will also automatically wordwrap if the wordWrap parameter is set to True.
If you want to rotate the text, use the TextRotated Method. This method lets you specify a rotation angle, pivot point and pivot mode. If the pivot point is not specified, the CurrentX Property and CurrentY Property values are used. The pivot mode specifies whether the text is left justified, right justified or center justified at the pivot point.
The Font parameters used in the Text methods let you set the printer's font name, size, and attributes (bold, underline, etc.). Use the TextHeight and TextWidth methods to return the font height and width. See the Change Font topic for more information on modifying Fonts.
The BackStyle Property lets you display text transparently or on a solid color background. The BackColor Property determines the color of the text background and the ForeColor Property determines the color of the text.