Class DropCapEditingExtensions
Phase 171 (WQ-0151): a drop cap given to a paragraph, changed and taken away as an edit, as Word's Insert > Drop Cap does. The dropped text (any leading punctuation and the first letter) becomes a paragraph of its own before the rest, framed as a drop cap, its line exact, the cap sized and lowered to Word's numbers (DropCapGeometry); removing it puts the text back at the paragraph's start without its size and lowering. One undo step each.
public static class DropCapEditingExtensions
- Inheritance
-
DropCapEditingExtensions
- Inherited Members
Methods
- DroppableText(Paragraph)
The text Word drops from a paragraph: its leading punctuation marks (quotes, brackets) and the letter or digit after them; null when the paragraph does not start with text that has one.
- ReadDropCap(WordDocument, Paragraph)
The drop cap a paragraph has: the one it begins (a drop cap paragraph before it), or the one it holds when it is the cap's own paragraph; null when it has none.
- 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.
- SetDropCap(WordDocument, DocumentPosition, Paragraph, DropCapSettings, DropCapGeometry)
Gives a paragraph a drop cap, or changes the one it has (Word's Drop Cap: Dropped or In margin, with its options). A new cap takes the paragraph's DroppableText(Paragraph) into a paragraph of its own before the rest, keeping its formatting. One undo step.