Example: BackColor property

This example sets the background color of the second paragraph to red.

  TextParagraph paragraph = document.getParagraphs().item(2);
  paragraph.setBackTransparent(false);
  paragraph.setBackgroundColor(application.RGB(255, 0, 0));

Related information

BackColor property