Table of Contents

Method RemoveList

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

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

document WordDocument

The document that holds the span.

span DocumentSpan

The span.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

document is null.

ArgumentException

The span is not in document.

InvalidOperationException

An end is in a shape's text box.