Method Measure
Measure(WordDocument, Paragraph, DropCapSettings, FontEngine)
The geometry of a drop cap for a paragraph (or the one it has, changed): its size, lowering and line, and the space after the paragraph has.
public static DropCapGeometry Measure(WordDocument document, Paragraph paragraph, DropCapSettings settings, FontEngine fonts)
Parameters
documentWordDocumentThe document.
paragraphParagraphThe paragraph the cap begins (or the cap's own paragraph).
settingsDropCapSettingsThe cap's settings.
fontsFontEngineThe fonts the engine draws with.
Returns
- DropCapGeometry
Word's numbers.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The paragraph has no text to drop, or a setting is out of range.