Table of Contents

Method DeleteMath

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

DeleteMath(WordDocument, MathPosition, int)

Deletes a range of one slot: characters of its runs and whole structures.

public static EquationEdit DeleteMath(this WordDocument document, MathPosition from, int length)

Parameters

document WordDocument

The document that holds the equation.

from MathPosition

The range's start; a range edge inside a surrogate pair takes in the whole pair.

length int

How many offsets; clamped to the slot's end. Zero or less gives an empty edit.

Returns

EquationEdit

The edit; After is the range's start. A slot may be left empty; the structure that holds it stays.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The equation is not in document.

InvalidOperationException

The position no longer names a slot of the equation.