Method ChangeListLevel
ChangeListLevel(WordDocument, DocumentSpan, int)
Moves every listed paragraph a span touches delta levels deeper (positive) or
shallower (negative), within levels 0 to 8. Paragraphs in no list are left as they are.
public static DocumentEdit ChangeListLevel(this WordDocument document, DocumentSpan span, int delta)
Parameters
documentWordDocumentThe document that holds the span.
spanDocumentSpanThe span.
deltaintThe number of levels to move.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentis null.- ArgumentException
The span is not in
document.- InvalidOperationException
An end is in a shape's text box.