Table of Contents

Method FromLinearText

Namespace
DocWright.Dom.Equations
Assembly
DocWright.Dom.dll

FromLinearText(string, bool)

Builds a new equation from linear text (Phase 166): UnicodeMath as Word's Linear mode and ToLinearText() write it (a/b, x^2, x_i, √(x+1), ∑_(i=1)^n▒i, ■(a&b@c&d)); one equation per line of a display paragraph. What it cannot read stays text.

public static OfficeMath FromLinearText(string text, bool isDisplay)

Parameters

text string

The linear text, at most MaxLinearTextLength characters.

isDisplay bool

True for a display paragraph; false for an inline equation (one line).

Returns

OfficeMath

The equation, written from its model.

Exceptions

ArgumentNullException

text is null.

ArgumentOutOfRangeException

text is longer than the limit.