[]
Represents an Office Math content object (OMath zone).
public class OMath : ContentObject, IBrowsable<OMath>
Gets the display mode of this OMath zone.
If this OMath zone is inside an OMathParagraph, or is not preceded or followed by a non-mathematical text in the parent object, the value of this property is Display. Otherwise the value is Inline.
public OMathMode Mode { get; }
Gets the next OMath object.
public OMath Next { get; }
Gets the parent OMathParagraph object.
public OMathParagraph ParentOMathParagraph { get; }
Gets the previous OMath object.
public OMath Previous { get; }
Adds a new OMathAccent to the end of the Office Math zone.
public OMathAccent AddAccent()
The added OMathAccent instance.
Adds a new OMathAccent to the end of the Office Math zone.
public OMathAccent AddAccent(string baseText, string character = null)
baseText
stringThe base element text.
character
stringThe accent character.
The added OMathAccent instance.
Adds a new OMathBar to the end of the Office Math zone.
public OMathBar AddBar()
Adds a new OMathBar to the end of the Office Math zone.
public OMathBar AddBar(string baseText)
baseText
stringThe base element text.
Adds a new OMathBorderBox to the end of the Office Math zone.
public OMathBorderBox AddBorderBox()
The added OMathBorderBox instance.
Adds a new OMathBorderBox to the end of the Office Math zone.
public OMathBorderBox AddBorderBox(string baseText)
baseText
stringThe base element text.
The added OMathBorderBox instance.
Adds a new OMathBox to the end of the Office Math zone.
public OMathBox AddBox()
Adds a new OMathBox to the end of the Office Math zone.
public OMathBox AddBox(string baseText)
baseText
stringThe base element text.
Adds a ComplexField to the end of the Office Math zone.
public ComplexField AddComplexField(string code, string result)
code
stringThe complex field code.
result
stringThe result text of the inserted field.
The added ComplexField.
Adds a ComplexField to the end of the Office Math zone.
public ComplexField AddComplexField(string code)
code
stringThe complex field code.
The added ComplexField.
Adds a ContentControl to the end of the Office Math zone.
public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)
type
ContentControlTypeThe new content control type.
fillContent
boolWhether to fill the new control content with default data.
The added ContentControl.
Adds a new OMathDelimiter to the end of the Office Math zone.
public OMathDelimiter AddDelimiter()
The added OMathDelimiter instance.
Adds a new OMathDelimiter to the end of the Office Math zone.
public OMathDelimiter AddDelimiter(string[] itemsText, string beginCharacter = null, string endCharacter = null, string separatorCharacter = null)
itemsText
string[]The array of item texts.
beginCharacter
stringThe beginning (opening) character.
endCharacter
stringThe ending (closing) character.
separatorCharacter
stringThe item separator character.
The added OMathDelimiter instance.
Adds an Endnote to the end of the Office Math zone.
public Endnote AddEndnote(string text, char referenceCharacter, string referenceFontName)
text
stringThe endnote text.
referenceCharacter
charThe endnote reference symbol.
referenceFontName
stringThe endnote reference symbol font.
Adds an Endnote to the end of the Office Math zone.
public Endnote AddEndnote(string text, string reference)
text
stringThe endnote text.
reference
stringThe endnote reference text.
Adds an Endnote to the end of the Office Math zone.
public Endnote AddEndnote(string text = null)
text
stringThe endnote text.
Adds a new OMathEquationArray to the end of the Office Math zone.
public OMathEquationArray AddEquationArray()
The added OMathEquationArray instance.
Adds a new OMathEquationArray to the end of the Office Math zone.
public OMathEquationArray AddEquationArray(string[] itemsText)
itemsText
string[]The array of item texts.
The added OMathEquationArray instance.
Adds a Footnote to the end of the Office Math zone.
public Footnote AddFootnote(string text, char referenceCharacter, string referenceFontName)
text
stringThe footnote text.
referenceCharacter
charThe footnote reference symbol.
referenceFontName
stringThe footnote reference symbol font.
Adds a Footnote to the end of the Office Math zone.
public Footnote AddFootnote(string text, string reference)
text
stringThe footnote text.
reference
stringThe footnote reference text.
Adds a Footnote to the end of the Office Math zone.
public Footnote AddFootnote(string text = null)
text
stringThe footnote text.
Adds a new OMathFraction to the end of the Office Math zone.
public OMathFraction AddFraction()
The added OMathFraction instance.
Adds a new OMathFraction to the end of the Office Math zone.
public OMathFraction AddFraction(string numeratorText, string denominatorText, OMathFractionType? fractionType = null)
numeratorText
stringThe numerator element text.
denominatorText
stringThe denominator element text.
fractionType
OMathFractionType?The fraction type.
The added OMathFraction instance.
Adds a new OMathFunction to the end of the Office Math zone.
public OMathFunction AddFunction()
The added OMathFunction instance.
Adds a new OMathFunction to the end of the Office Math zone.
public OMathFunction AddFunction(string nameText, string argumentText)
nameText
stringThe name element text.
argumentText
stringThe argument element text.
The added OMathFunction instance.
Adds a new OMathGroupCharacter to the end of the Office Math zone.
public OMathGroupCharacter AddGroupCharacter()
The added OMathGroupCharacter instance.
Adds a new OMathGroupCharacter to the end of the Office Math zone.
public OMathGroupCharacter AddGroupCharacter(string baseText, string character = null)
baseText
stringThe base element text.
character
stringThe group character.
The added OMathGroupCharacter instance.
Adds a Hyperlink to the end of the Office Math zone.
public Hyperlink AddHyperlink()
Adds a Hyperlink to the end of the Office Math zone.
public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)
anchor
stringThe name of a bookmark in the current document which shall be the target of this hyperlink.
text
stringThe display text of the specified hyperlink.
screenTip
stringThe text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.
target
stringThe name of the frame or window in which you want to load the specified hyperlink.
Adds a Hyperlink to the end of the Office Math zone.
public Hyperlink AddHyperlink(Uri address, string anchor, string text, string screenTip = null, string target = null)
address
System.UriThe address for the specified link. The address can be an e-mail address, an Internet address, or a file name.
anchor
stringThe name of a bookmark in the current document which shall be the target of this hyperlink.
text
stringThe display text of the specified hyperlink.
screenTip
stringThe text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.
target
stringThe name of the frame or window in which you want to load the specified hyperlink.
Adds a new OMathLimitLower to the end of the Office Math zone.
public OMathLimitLower AddLimitLower()
The added OMathLimitLower instance.
Adds a new OMathLimitLower to the end of the Office Math zone.
public OMathLimitLower AddLimitLower(string baseText, string limitText)
baseText
stringThe base element text.
limitText
stringThe limit element text.
The added OMathLimitLower instance.
Adds a new OMathLimitUpper to the end of the Office Math zone.
public OMathLimitUpper AddLimitUpper()
The added OMathLimitUpper instance.
Adds a new OMathLimitUpper to the end of the Office Math zone.
public OMathLimitUpper AddLimitUpper(string baseText, string limitText)
baseText
stringThe base element text.
limitText
stringThe limit element text.
The added OMathLimitUpper instance.
Adds a new OMathMatrix to the end of the Office Math zone.
public OMathMatrix AddMatrix()
The added OMathMatrix instance.
Adds a new OMathMatrix to the end of the Office Math zone.
public OMathMatrix AddMatrix(int rows, int columns)
rows
intCount of rows in the matrix.
columns
intCount of columns in the matrix.
The added OMathMatrix instance.
Adds a new OMathMatrix to the end of the Office Math zone.
public OMathMatrix AddMatrix(int?[,] cellsValue)
cellsValue
int?[,]The array of cell values.
The added OMathMatrix instance.
Adds a new OMathMatrix to the end of the Office Math zone.
public OMathMatrix AddMatrix(string[,] cellsText)
cellsText
string[,]The array of cell texts.
The added OMathMatrix instance.
Adds a new OMathNary to the end of the Office Math zone.
public OMathNary AddNary()
Adds a new OMathNary to the end of the Office Math zone.
public OMathNary AddNary(string baseText, string subscriptText, string superscriptText, string character = null)
baseText
stringThe base element text.
subscriptText
stringThe subscript element text.
superscriptText
stringThe superscript element text.
character
stringThe n-ary character.
Adds a new OMathStruct to the end of the Office Math zone.
public OMathStruct AddOMathStruct(OMathStructType type)
type
OMathStructTypeThe Office Math structure type.
The added OMathStruct instance.
Adds a new OMathPhantom to the end of the Office Math zone.
public OMathPhantom AddPhantom()
The added OMathPhantom instance.
Adds a new OMathPhantom to the end of the Office Math zone.
public OMathPhantom AddPhantom(string argumentText, bool smash)
argumentText
stringThe argument element text.
smash
boolIndicates whether argumentText
is visible but its height is not taken into account in the spacing of the layout.
The added OMathPhantom instance.
Adds a new OMathPreSubSuperscript to the end of the Office Math zone.
public OMathPreSubSuperscript AddPreSubSuperscript()
The added OMathPreSubSuperscript instance.
Adds a new OMathPreSubSuperscript to the end of the Office Math zone.
public OMathPreSubSuperscript AddPreSubSuperscript(string baseText, string subscriptText, string superscriptText)
baseText
stringThe base element text.
subscriptText
stringThe subscript element text.
superscriptText
stringThe superscript element text.
The added OMathPreSubSuperscript instance.
Adds a new OMathRadical to the end of the Office Math zone.
public OMathRadical AddRadical()
The added OMathRadical instance.
Adds a new OMathRadical to the end of the Office Math zone.
public OMathRadical AddRadical(string radicandText, string degreeText)
radicandText
stringThe radicand element text.
degreeText
stringThe degree element text.
The added OMathRadical instance.
Adds a Run to the end of the Office Math zone.
public Run AddRun()
Adds a Run to the end of the Office Math zone.
public Run AddRun(Style style)
style
StyleThe style (character or linked paragraph) for the added run.
Adds a Run to the end of the Office Math zone.
public Run AddRun(string text, Style style)
text
stringThe text of the inserted Run
style
StyleThe style (character or linked paragraph) for the added run.
Adds a Run to the end of the Office Math zone.
public Run AddRun(string text)
text
stringThe text of the added Run
Adds a SimpleField to the end of the Office Math zone.
public SimpleField AddSimpleField(string code, string result)
code
stringThe field code.
result
stringThe result text of the inserted field.
The added SimpleField.
Adds a SimpleField to the end of the Office Math zone.
public SimpleField AddSimpleField(string code)
code
stringThe field code.
The added SimpleField.
Adds a new OMathSubscript to the end of the Office Math zone.
public OMathSubscript AddSubscript()
The added OMathSubscript instance.
Adds a new OMathSubscript to the end of the Office Math zone.
public OMathSubscript AddSubscript(string baseText, string subscriptText)
baseText
stringThe base element text.
subscriptText
stringThe subscript element text.
The added OMathSubscript instance.
Adds a new OMathSubSuperscript to the end of the Office Math zone.
public OMathSubSuperscript AddSubSuperscript()
The added OMathSubSuperscript instance.
Adds a new OMathSubSuperscript to the end of the Office Math zone.
public OMathSubSuperscript AddSubSuperscript(string baseText, string subscriptText, string superscriptText)
baseText
stringThe base element text.
subscriptText
stringThe subscript element text.
superscriptText
stringThe superscript element text.
The added OMathSubSuperscript instance.
Adds a new OMathSuperscript to the end of the Office Math zone.
public OMathSuperscript AddSuperscript()
The added OMathSuperscript instance.
Adds a new OMathSuperscript to the end of the Office Math zone.
public OMathSuperscript AddSuperscript(string baseText, string superscriptText)
baseText
stringThe base element text.
superscriptText
stringThe superscript element text.
The added OMathSuperscript instance.