You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

PRIM_PDF - setTextColor Method
Sets the text color for upcoming elements
Member of PRIM_PDF (PRIM_PDF)

Parameters

Name

Type

Data Type

Description

Color

*Input

Color

RGB color value or a LANSA specified color name

Details


Sets the text color for upcoming elements.

Example


Set the text color
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
#pdf.start
#pdf.setTextColor Color(Theme500)
#pdf.text Text('Hello world!') Left(10) Top(10)
#pdf.save Filename('myReport.pdf')

See also

All Component Classes
Technical Reference

  • No labels