Table of Contents

Method Measure

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

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

document WordDocument

The document.

paragraph Paragraph

The paragraph the cap begins (or the cap's own paragraph).

settings DropCapSettings

The cap's settings.

fonts FontEngine

The 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.