Table of Contents

Method RemoveDropCap

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

RemoveDropCap(WordDocument, DocumentPosition, Paragraph)

Takes a paragraph's drop cap away (Word's Drop Cap: None): the cap's text goes back to the start of the paragraph, formatted as it was without the cap's size and lowering, and the cap's paragraph goes. One undo step; empty when the paragraph has none.

public static DocumentEdit RemoveDropCap(this WordDocument document, DocumentPosition at, Paragraph paragraph)

Parameters

document WordDocument

The document.

at DocumentPosition

Where the caret is.

paragraph Paragraph

The paragraph (or its cap's own paragraph).

Returns

DocumentEdit

The edit; After is the start of the paragraph.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The position or the paragraph is not in the document.