Example: WholeWord property

This example sets only the first word of the paragraph apply the dropped capital format.

  TextDropCap dropCap = document.getParagraphs().item(2).getDropCap();
  dropCap.enable();
  dropCap.setWholeWord(false);

Related information

WholeWord property