Image Viewer CP Gold SDK ActiveX Control ReferenceMethods PDFSetTextColor Image Viewer CP ActiveX Control PDFSetTextColor Set the text color, it will affect PDFDrawText method. Public Function PDFSetTextColor( _ ByVal iRed As Integer, _ ByVal iGreen As Integer, _ ByVal iBlue As Integer ) As bool Parameter iRed The color value with red component of text color.iGreen The color value with green component of text color.iBlue The color value with blue component of text color.Return ValueReturn true if successful.Return false if failed.Example Visual Basic SyntaxImageViewer1.PDFInitAnnotationFontID = ImageViewer1.PDFAddFont("Arial", True, True)ImageViewer1.PDFSetTextColor 255, 0, 255ImageViewer1.PDFDrawText 0, 0, 100, "This is sample text 1 ", FontID, 40, 0