Previous - xlsSetFontSize Section Home - Microsoft Excel Next - xlsSetFontStyle


xlsSetFontColor ( )

Sets the font color used for the range of selected cells

Usage:

pptSetFontColor (object me, integer r, integer g, integer b )

Parameters:

r (byte) - the amount of red in the range from 0 to 255

g (byte) - the amount of green in the range from 0 to 255

b (byte) - the amount of blue in the range from 0 to 255

Returns:

(integer) - The success code

Example:

xtRose = xtra("Rosetta").new( )
xtRose.xlsLaunch( )
xtRose.xlsNewBlank( )
xtRose.xlsSetRange( 1, 1, 5, 3 )
xtRose.xlsInsertTxt( [ ["a","b","c","d","e"], [1,2,3,4,5], [1.1, 2.2, 3.3, 4.4, 5.5] ] )
xtRose.xlsSetRange( 1, 1, 1, 3 ) -- sets the first column blue
xtRose.xlsSetFontColor( 0, 0, 255 )

Notes:


Previous - xlsSetFontSize Section Home - Microsoft Excel Next - xlsSetFontStyle