Method FromLinearText
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
textstringThe linear text, at most MaxLinearTextLength characters.
isDisplayboolTrue for a display paragraph; false for an inline equation (one line).
Returns
- OfficeMath
The equation, written from its model.
Exceptions
- ArgumentNullException
textis null.- ArgumentOutOfRangeException
textis longer than the limit.