Class EquationEditingExtensions
Equations edited at a position inside them (Phase 166): text typed into and deleted from a slot, a structure put in (the selection, if any, becoming its base), a whole equation inserted. Each is one DocumentEdit; an equation an edit changes is written from its model from then on (IsEdited), and undoing the edit puts back the exact model and flag it had.
public static class EquationEditingExtensions
- Inheritance
-
EquationEditingExtensions
- Inherited Members
Fields
- MaxMathTextLength
The most characters one call types into an equation.
Methods
- BuildUpEquation(WordDocument, OfficeMath)
Shows an equation in Professional form, as Word's Convert > Professional does (Phase 177, WQ-0158): the linear text in each line's runs is built up into structures (FromLinearText(string, bool)'s rules); the structures a line already has stay, and text that builds into no structure stays as it is.
- CorrectMathAfterCharacter(WordDocument, MathPosition)
Math AutoCorrect after a character typed in an equation (Phase 177, WQ-0158), as Word does it: when the character before the caret ends a control word (anything but a letter or a digit) and the word is one of Entries, the word becomes its symbol; a space that ended it goes with it, any other character stays. Letters and digits continue the word; an unknown word stays as typed.
- DeleteMath(WordDocument, MathPosition, int)
Deletes a range of one slot: characters of its runs and whole structures.
- InsertEquation(WordDocument, DocumentPosition, OfficeMath)
Inserts an equation at a position of a paragraph.
- InsertMathStructure(WordDocument, MathPosition, MathElement, int)
Puts a structure into a slot: a copy of
structure, whose base (a fraction's numerator, a script's or radical's or n-ary operator's base, a function's argument, a matrix's first cell) takes theselectedLengthoffsets afterat, as Word puts a selection into a structure.
- InsertMathText(WordDocument, MathPosition, string)
Types text into a slot of an equation.
- LinearizeEquation(WordDocument, OfficeMath)
Shows an equation in Linear form, as Word's Convert > Linear does (Phase 177, WQ-0158): each line becomes its linear text (UnicodeMath), followed by the space Word writes after it, in one run.