Previous - pptSetFontSize Section Home - Microsoft PowerPoint Next - pptSetFontStyle


pptSetFontColor ( )

Sets the font color used in the active text box

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.pptLaunch( )
xtRose.pptSetVisible( 1 )
xtRose.pptNewBlank( )
xtRose.pptAddSlide( 1 )
xtRose.pptInsertTxt( 100, 50, 620, 150, "Hello World" )
xtRose.pptSetFontColor( 0, 0, 255 )

Notes:


Previous - pptSetFontSize Section Home - Microsoft PowerPoint Next - pptSetFontStyle