Example: CharacterCount property

This example sets the character count of the dropped capital format for the second paragraph.

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

Related information

CharacterCount property