Method RemoveList
RemoveList(WordDocument, DocumentSpan)
Takes every paragraph a span touches out of its list. A paragraph whose style puts it in a list is given
the explicit "no list" (w:numId 0) Word writes; any other loses its list properties.
public static DocumentEdit RemoveList(this WordDocument document, DocumentSpan span)
Parameters
documentWordDocumentThe document that holds the span.
spanDocumentSpanThe span.
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.