Method RemoveDropCap
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
documentWordDocumentThe document.
atDocumentPositionWhere the caret is.
paragraphParagraphThe 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.