[]
Represents an element inside an OMathStruct class instance.
public class OMathElement : ContentObject, IBrowsable<OMathElement>
Gets whether the RelativeSize property can be changed.
public bool CanChangeRelativeSize { get; }
Gets the OMathMatrixColumn of the element if it is a cell in the OMathMatrix structure.
public OMathMatrixColumn Column { get; }
Gets the default value for the RelativeSize property.
public int DefaultRelativeSize { get; }
Gets the OMathElementType of the element.
public OMathElementType ElementType { get; }
Gets the maximum value for the RelativeSize property of the element.
public int MaxRelativeSize { get; }
Gets the minimum value for the RelativeSize property of the element.
public int MinRelativeSize { get; }
Gets the next OMathElement in a collection.
public OMathElement Next { get; }
Gets the parent OMathElement class instance.
public OMathElement ParentElement { get; }
Gets the parent OMath class instance.
public OMath ParentOMath { get; }
Gets the parent OMathStruct class instance.
public OMathStruct ParentStruct { get; }
Gets the previous OMathElement in a collection.
public OMathElement Previous { get; }
Gets or sets the element text size relative to the normal text size. For instance, 1 represents that it is one size larger than normal.
Allowed values are from MinRelativeSize to MaxRelativeSize, inclusive.
Default value defined in the DefaultRelativeSize property.
public int RelativeSize { get; set; }
Gets the OMathMatrixRow of the element if it is a cell in the OMathMatrix structure.
public OMathMatrixRow Row { get; }
Adds a new OMathAccent to the end of the Office Math element.
public OMathAccent AddAccent()
The added OMathAccent instance.
Adds a new OMathAccent to the end of the Office Math element.
public OMathAccent AddAccent(string baseText, string character = null)
baseText
stringThe structure base element text.
character
stringThe structure accent character.
The added OMathAccent instance.
Adds a new OMathBar to the end of the Office Math element.
public OMathBar AddBar()
Adds a new OMathBar to the end of the Office Math element.
public OMathBar AddBar(string baseText)
baseText
stringThe structure base element text.
Adds a new OMathBorderBox to the end of the Office Math element.
public OMathBorderBox AddBorderBox()
The added OMathBorderBox instance.
Adds a new OMathBorderBox to the end of the Office Math element.
public OMathBorderBox AddBorderBox(string baseText)
baseText
stringThe structure base element text.
The added OMathBorderBox instance.
Adds a new OMathBox to the end of the Office Math element.
public OMathBox AddBox()
Adds a new OMathBox to the end of the Office Math element.
public OMathBox AddBox(string baseText)
baseText
stringThe structure base element text.
Adds a ComplexField to the end of the Office Math element.
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 element.
public ComplexField AddComplexField(string code)
code
stringThe complex field code.
The added ComplexField.
Adds a ContentControl to the end of the Office Math element.
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 element.
public OMathDelimiter AddDelimiter()
The added OMathDelimiter instance.
Adds a new OMathDelimiter to the end of the Office Math element.
public OMathDelimiter AddDelimiter(string[] itemsText, string beginCharacter = null, string endCharacter = null, string separatorCharacter = null)
itemsText
string[]The structure items text array.
beginCharacter
stringThe stricture beginning, or opening character.
endCharacter
stringThe structure ending, or closing character.
separatorCharacter
stringThe structure character that separates items.
The added OMathDelimiter instance.
Adds an Endnote to the end of the Office Math element.
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 element.
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 element.
public Endnote AddEndnote(string text = null)
text
stringThe endnote text.
Adds a new OMathEquationArray to the end of the Office Math element.
public OMathEquationArray AddEquationArray()
The added OMathEquationArray instance.
Adds a new OMathEquationArray to the end of the Office Math element.
public OMathEquationArray AddEquationArray(string[] itemsText)
itemsText
string[]The structure items text array.
The added OMathEquationArray instance.
Adds a Footnote to the end of the Office Math element.
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 element.
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 element.
public Footnote AddFootnote(string text = null)
text
stringThe footnote text.
Adds a new OMathFraction to the end of the Office Math element.
public OMathFraction AddFraction()
The added OMathFraction instance.
Adds a new OMathFraction to the end of the Office Math element.
public OMathFraction AddFraction(string numeratorText, string denominatorText, OMathFractionType? fractionType)
numeratorText
stringThe structure numerator element text.
denominatorText
stringThe structure denominator element text.
fractionType
OMathFractionType?The fraction type.
The added OMathFraction instance.
Adds a new OMathFunction to the end of the Office Math element.
public OMathFunction AddFunction()
The added OMathFunction instance.
Adds a new OMathFunction to the end of the Office Math element.
public OMathFunction AddFunction(string nameText, string argumentText)
nameText
stringThe structure name element text.
argumentText
stringThe structure argument element text.
The added OMathFunction instance.
Adds a new OMathGroupCharacter to the end of the Office Math element.
public OMathGroupCharacter AddGroupCharacter()
The added OMathGroupCharacter instance.
Adds a new OMathGroupCharacter to the end of the Office Math element.
public OMathGroupCharacter AddGroupCharacter(string baseText, string character = null)
baseText
stringThe structure base element text.
character
stringThe structure group character.
The added OMathGroupCharacter instance.
Adds a Hyperlink to the end of the Office Math element.
public Hyperlink AddHyperlink()
Adds a Hyperlink to the end of the Office Math element.
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 element.
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 element.
public OMathLimitLower AddLimitLower()
The added OMathLimitLower instance.
Adds a new OMathLimitLower to the end of the Office Math element.
public OMathLimitLower AddLimitLower(string baseText, string limitText)
baseText
stringThe structure base element text.
limitText
stringThe structure limit element text.
The added OMathLimitLower instance.
Adds a new OMathLimitUpper to the end of the Office Math element.
public OMathLimitUpper AddLimitUpper()
The added OMathLimitUpper instance.
Adds a new OMathLimitUpper to the end of the Office Math element.
public OMathLimitUpper AddLimitUpper(string baseText, string limitText)
baseText
stringThe structure base element text.
limitText
stringThe structure limit element text.
The added OMathLimitUpper instance.
Adds a new OMathMatrix to the end of the Office Math element.
public OMathMatrix AddMatrix()
The added OMathMatrix instance.
Adds a new OMathMatrix to the end of the Office Math element.
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 element.
public OMathMatrix AddMatrix(int?[,] cellsValue)
cellsValue
int?[,]The structure cells value array.
The added OMathMatrix instance.
Adds a new OMathMatrix to the end of the Office Math element.
public OMathMatrix AddMatrix(string[,] cellsText)
cellsText
string[,]The structure cells text array.
The added OMathMatrix instance.
Adds a new OMathNary to the end of the Office Math element.
public OMathNary AddNary()
Adds a new OMathNary to the end of the Office Math element.
public OMathNary AddNary(string baseText, string subscriptText, string superscriptText, string character = null)
baseText
stringThe structure base element text.
subscriptText
stringThe structure subscript element text.
superscriptText
stringThe structure superscript element text.
character
stringThe n-ary character.
Adds a new OMathStruct to the end of the Office Math element.
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 element.
public OMathPhantom AddPhantom()
The added OMathPhantom instance.
Adds a new OMathPhantom to the end of the Office Math element.
public OMathPhantom AddPhantom(string argumentText, bool smash)
argumentText
stringThe structure argument element text.
smash
boolWhether the argument element is visible but that the 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 element.
public OMathPreSubSuperscript AddPreSubSuperscript()
The added OMathPreSubSuperscript instance.
Adds a new OMathPreSubSuperscript to the end of the Office Math element.
public OMathPreSubSuperscript AddPreSubSuperscript(string baseText, string subscriptText, string superscriptText)
baseText
stringThe structure base element text.
subscriptText
stringThe structure subscript element text.
superscriptText
stringThe structure superscript element text.
The added OMathPreSubSuperscript instance.
Adds a new OMathRadical to the end of the Office Math element.
public OMathRadical AddRadical()
The added OMathRadical instance.
Adds a new OMathRadical to the end of the Office Math element.
public OMathRadical AddRadical(string radicandText, string degreeText)
radicandText
stringThe structure radicand element text.
degreeText
stringThe structure degree element text.
The added OMathRadical instance.
Adds a Run to the end of the Office Math element.
public Run AddRun()
Adds a Run to the end of the Office Math element.
public Run AddRun(Style style)
style
StyleThe run character or linked paragraph style.
Adds a Run to the end of the Office Math element.
public Run AddRun(string text, Style style)
Adds a Run to the end of the Office Math element.
public Run AddRun(string text)
text
stringThe text of the inserted Run
Adds a SimpleField to the end of the Office Math element.
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 element.
public SimpleField AddSimpleField(string code)
code
stringThe field code.
The added SimpleField.
Adds a new OMathSubscript to the end of the Office Math element.
public OMathSubscript AddSubscript()
The added OMathSubscript instance.
Adds a new OMathSubscript to the end of the Office Math element.
public OMathSubscript AddSubscript(string baseText, string subscriptText)
baseText
stringThe structure base element text.
subscriptText
stringThe structure subscript element text.
The added OMathSubscript instance.
Adds a new OMathSubSuperscript to the end of the Office Math element.
public OMathSubSuperscript AddSubSuperscript()
The added OMathSubSuperscript instance.
Adds a new OMathSubSuperscript to the end of the Office Math element.
public OMathSubSuperscript AddSubSuperscript(string baseText, string subscriptText, string superscriptText)
baseText
stringThe structure base element text.
subscriptText
stringThe structure subscript element text.
superscriptText
stringThe structure superscript element text.
The added OMathSubSuperscript instance.
Adds a new OMathSuperscript to the end of the Office Math element.
public OMathSuperscript AddSuperscript()
The added OMathSuperscript instance.
Adds a new OMathSuperscript to the end of the Office Math element.
public OMathSuperscript AddSuperscript(string baseText, string superscriptText)
baseText
stringThe structure base element text.
superscriptText
stringThe structure superscript element text.
The added OMathSuperscript instance.
Deletes this content object from the parent Body.
Note that the position occupied by this content object in the parent can still be accessed (e.g. to insert new content) via a PersistentRange if one has previously been created with GetPersistentRange().
public override void Delete()