Table of Contents

Method ChangeListLevel

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

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

document WordDocument

The document that holds the span.

span DocumentSpan

The span.

delta int

The number of levels to move.

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.