setBackgroundColor

setBackgroundColor

BASIC / ADVANCED / PREMIUM

Sets the background color of the Word document.

Description
public void setBackgroundColor(String color)

This method allows you to modify the background color of your Word document.

Parameters

color

Hexadecimal color value: FFFF00, FA0000, 4578AA.

Code samples

Example #1

The resulting Word document looks like: