SetTemplateColorName

Navigation:  Macros > Macro Language > Built-in Functions > All Functions (Alphabetical) >

SetTemplateColorName

Previous pageReturn to chapter overviewNext page

void = SetTemplateColorName(nIdx, nColorName)

 

list of the colors defined in a template

list of the colors defined in a template

This macro function changes the color referred to by the template color of index nIdx to the color nColorName.

// at the beginning of diary generation
// set the second template color to CYAN
sColorName = SetTemplateColorName(2'CYAN')

Some remarks:

 

The value of the parameter nIdx is limited to the values 1, 2, or 3.

This function changes the color referred to by one of the template colors; it does not simply rename it. This means that there must already be a color of the name nColorName in the list of colors in the current template.

The change made by a call to this function remains for the remainder of the current diary generation (or until another call is made to the same function).

 

See also: GetTemplateColorName, FormatText, simple text formatting, FormatParagraph, template colors, template information.


Topic 181030 updated on 14-Feb-2019.
Topic URL: https://www.qppstudio.net/webhelp_xe3/index.html?settemplatecolorname.htm