[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.OMath

Class OMath

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents an Office Math content object (OMath zone).

public class OMath : ContentObject, IBrowsable<OMath>
Inheritance
object
OMath
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Mode

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; }

Property Value

OMathMode

Next

Gets the next OMath object.

public OMath Next { get; }

Property Value

OMath

ParentOMathParagraph

Gets the parent OMathParagraph object.

public OMathParagraph ParentOMathParagraph { get; }

Property Value

OMathParagraph

Previous

Gets the previous OMath object.

public OMath Previous { get; }

Property Value

OMath

Methods

AddAccent()

Adds a new OMathAccent to the end of the Office Math zone.

public OMathAccent AddAccent()

Returns

OMathAccent

The added OMathAccent instance.

AddAccent(string, string)

Adds a new OMathAccent to the end of the Office Math zone.

public OMathAccent AddAccent(string baseText, string character = null)

Parameters

baseText string

The base element text.

character string

The accent character.

Returns

OMathAccent

The added OMathAccent instance.

AddBar()

Adds a new OMathBar to the end of the Office Math zone.

public OMathBar AddBar()

Returns

OMathBar

The added OMathBar instance.

AddBar(string)

Adds a new OMathBar to the end of the Office Math zone.

public OMathBar AddBar(string baseText)

Parameters

baseText string

The base element text.

Returns

OMathBar

The added OMathBar instance.

AddBorderBox()

Adds a new OMathBorderBox to the end of the Office Math zone.

public OMathBorderBox AddBorderBox()

Returns

OMathBorderBox

The added OMathBorderBox instance.

AddBorderBox(string)

Adds a new OMathBorderBox to the end of the Office Math zone.

public OMathBorderBox AddBorderBox(string baseText)

Parameters

baseText string

The base element text.

Returns

OMathBorderBox

The added OMathBorderBox instance.

AddBox()

Adds a new OMathBox to the end of the Office Math zone.

public OMathBox AddBox()

Returns

OMathBox

The added OMathBox instance.

AddBox(string)

Adds a new OMathBox to the end of the Office Math zone.

public OMathBox AddBox(string baseText)

Parameters

baseText string

The base element text.

Returns

OMathBox

The added OMathBox instance.

AddComplexField(string, string)

Adds a ComplexField to the end of the Office Math zone.

public ComplexField AddComplexField(string code, string result)

Parameters

code string

The complex field code.

result string

The result text of the inserted field.

Returns

ComplexField

The added ComplexField.

AddComplexField(string)

Adds a ComplexField to the end of the Office Math zone.

public ComplexField AddComplexField(string code)

Parameters

code string

The complex field code.

Returns

ComplexField

The added ComplexField.

AddContentControl(ContentControlType, bool)

Adds a ContentControl to the end of the Office Math zone.

public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

AddDelimiter()

Adds a new OMathDelimiter to the end of the Office Math zone.

public OMathDelimiter AddDelimiter()

Returns

OMathDelimiter

The added OMathDelimiter instance.

AddDelimiter(string[], string, string, string)

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)

Parameters

itemsText string[]

The array of item texts.

beginCharacter string

The beginning (opening) character.

endCharacter string

The ending (closing) character.

separatorCharacter string

The item separator character.

Returns

OMathDelimiter

The added OMathDelimiter instance.

AddEndnote(string, char, string)

Adds an Endnote to the end of the Office Math zone.

public Endnote AddEndnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The endnote text.

referenceCharacter char

The endnote reference symbol.

referenceFontName string

The endnote reference symbol font.

Returns

Endnote

The added Endnote.

AddEndnote(string, string)

Adds an Endnote to the end of the Office Math zone.

public Endnote AddEndnote(string text, string reference)

Parameters

text string

The endnote text.

reference string

The endnote reference text.

Returns

Endnote

The added Endnote.

AddEndnote(string)

Adds an Endnote to the end of the Office Math zone.

public Endnote AddEndnote(string text = null)

Parameters

text string

The endnote text.

Returns

Endnote

The added Endnote.

AddEquationArray()

Adds a new OMathEquationArray to the end of the Office Math zone.

public OMathEquationArray AddEquationArray()

Returns

OMathEquationArray

The added OMathEquationArray instance.

AddEquationArray(string[])

Adds a new OMathEquationArray to the end of the Office Math zone.

public OMathEquationArray AddEquationArray(string[] itemsText)

Parameters

itemsText string[]

The array of item texts.

Returns

OMathEquationArray

The added OMathEquationArray instance.

AddFootnote(string, char, string)

Adds a Footnote to the end of the Office Math zone.

public Footnote AddFootnote(string text, char referenceCharacter, string referenceFontName)

Parameters

text string

The footnote text.

referenceCharacter char

The footnote reference symbol.

referenceFontName string

The footnote reference symbol font.

Returns

Footnote

The added Footnote.

AddFootnote(string, string)

Adds a Footnote to the end of the Office Math zone.

public Footnote AddFootnote(string text, string reference)

Parameters

text string

The footnote text.

reference string

The footnote reference text.

Returns

Footnote

The added Footnote.

AddFootnote(string)

Adds a Footnote to the end of the Office Math zone.

public Footnote AddFootnote(string text = null)

Parameters

text string

The footnote text.

Returns

Footnote

The added Footnote.

AddFraction()

Adds a new OMathFraction to the end of the Office Math zone.

public OMathFraction AddFraction()

Returns

OMathFraction

The added OMathFraction instance.

AddFraction(string, string, OMathFractionType?)

Adds a new OMathFraction to the end of the Office Math zone.

public OMathFraction AddFraction(string numeratorText, string denominatorText, OMathFractionType? fractionType = null)

Parameters

numeratorText string

The numerator element text.

denominatorText string

The denominator element text.

fractionType OMathFractionType?

The fraction type.

Returns

OMathFraction

The added OMathFraction instance.

AddFunction()

Adds a new OMathFunction to the end of the Office Math zone.

public OMathFunction AddFunction()

Returns

OMathFunction

The added OMathFunction instance.

AddFunction(string, string)

Adds a new OMathFunction to the end of the Office Math zone.

public OMathFunction AddFunction(string nameText, string argumentText)

Parameters

nameText string

The name element text.

argumentText string

The argument element text.

Returns

OMathFunction

The added OMathFunction instance.

AddGroupCharacter()

Adds a new OMathGroupCharacter to the end of the Office Math zone.

public OMathGroupCharacter AddGroupCharacter()

Returns

OMathGroupCharacter

The added OMathGroupCharacter instance.

AddGroupCharacter(string, string)

Adds a new OMathGroupCharacter to the end of the Office Math zone.

public OMathGroupCharacter AddGroupCharacter(string baseText, string character = null)

Parameters

baseText string

The base element text.

character string

The group character.

Returns

OMathGroupCharacter

The added OMathGroupCharacter instance.

Adds a Hyperlink to the end of the Office Math zone.

public Hyperlink AddHyperlink()

Returns

Hyperlink

The added Hyperlink.

Adds a Hyperlink to the end of the Office Math zone.

public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)

Parameters

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added 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)

Parameters

address System.Uri

The address for the specified link. The address can be an e-mail address, an Internet address, or a file name.

anchor string

The name of a bookmark in the current document which shall be the target of this hyperlink.

text string

The display text of the specified hyperlink.

screenTip string

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

target string

The name of the frame or window in which you want to load the specified hyperlink.

Returns

Hyperlink

The added Hyperlink.

AddLimitLower()

Adds a new OMathLimitLower to the end of the Office Math zone.

public OMathLimitLower AddLimitLower()

Returns

OMathLimitLower

The added OMathLimitLower instance.

AddLimitLower(string, string)

Adds a new OMathLimitLower to the end of the Office Math zone.

public OMathLimitLower AddLimitLower(string baseText, string limitText)

Parameters

baseText string

The base element text.

limitText string

The limit element text.

Returns

OMathLimitLower

The added OMathLimitLower instance.

AddLimitUpper()

Adds a new OMathLimitUpper to the end of the Office Math zone.

public OMathLimitUpper AddLimitUpper()

Returns

OMathLimitUpper

The added OMathLimitUpper instance.

AddLimitUpper(string, string)

Adds a new OMathLimitUpper to the end of the Office Math zone.

public OMathLimitUpper AddLimitUpper(string baseText, string limitText)

Parameters

baseText string

The base element text.

limitText string

The limit element text.

Returns

OMathLimitUpper

The added OMathLimitUpper instance.

AddMatrix()

Adds a new OMathMatrix to the end of the Office Math zone.

public OMathMatrix AddMatrix()

Returns

OMathMatrix

The added OMathMatrix instance.

AddMatrix(int, int)

Adds a new OMathMatrix to the end of the Office Math zone.

public OMathMatrix AddMatrix(int rows, int columns)

Parameters

rows int

Count of rows in the matrix.

columns int

Count of columns in the matrix.

Returns

OMathMatrix

The added OMathMatrix instance.

AddMatrix(int?[,])

Adds a new OMathMatrix to the end of the Office Math zone.

public OMathMatrix AddMatrix(int?[,] cellsValue)

Parameters

cellsValue int?[,]

The array of cell values.

Returns

OMathMatrix

The added OMathMatrix instance.

AddMatrix(string[,])

Adds a new OMathMatrix to the end of the Office Math zone.

public OMathMatrix AddMatrix(string[,] cellsText)

Parameters

cellsText string[,]

The array of cell texts.

Returns

OMathMatrix

The added OMathMatrix instance.

AddNary()

Adds a new OMathNary to the end of the Office Math zone.

public OMathNary AddNary()

Returns

OMathNary

The added OMathNary instance.

AddNary(string, string, string, string)

Adds a new OMathNary to the end of the Office Math zone.

public OMathNary AddNary(string baseText, string subscriptText, string superscriptText, string character = null)

Parameters

baseText string

The base element text.

subscriptText string

The subscript element text.

superscriptText string

The superscript element text.

character string

The n-ary character.

Returns

OMathNary

The added OMathNary instance.

AddOMathStruct(OMathStructType)

Adds a new OMathStruct to the end of the Office Math zone.

public OMathStruct AddOMathStruct(OMathStructType type)

Parameters

type OMathStructType

The Office Math structure type.

Returns

OMathStruct

The added OMathStruct instance.

AddPhantom()

Adds a new OMathPhantom to the end of the Office Math zone.

public OMathPhantom AddPhantom()

Returns

OMathPhantom

The added OMathPhantom instance.

AddPhantom(string, bool)

Adds a new OMathPhantom to the end of the Office Math zone.

public OMathPhantom AddPhantom(string argumentText, bool smash)

Parameters

argumentText string

The argument element text.

smash bool

Indicates whether argumentText is visible but its height is not taken into account in the spacing of the layout.

Returns

OMathPhantom

The added OMathPhantom instance.

AddPreSubSuperscript()

Adds a new OMathPreSubSuperscript to the end of the Office Math zone.

public OMathPreSubSuperscript AddPreSubSuperscript()

Returns

OMathPreSubSuperscript

The added OMathPreSubSuperscript instance.

AddPreSubSuperscript(string, string, string)

Adds a new OMathPreSubSuperscript to the end of the Office Math zone.

public OMathPreSubSuperscript AddPreSubSuperscript(string baseText, string subscriptText, string superscriptText)

Parameters

baseText string

The base element text.

subscriptText string

The subscript element text.

superscriptText string

The superscript element text.

Returns

OMathPreSubSuperscript

The added OMathPreSubSuperscript instance.

AddRadical()

Adds a new OMathRadical to the end of the Office Math zone.

public OMathRadical AddRadical()

Returns

OMathRadical

The added OMathRadical instance.

AddRadical(string, string)

Adds a new OMathRadical to the end of the Office Math zone.

public OMathRadical AddRadical(string radicandText, string degreeText)

Parameters

radicandText string

The radicand element text.

degreeText string

The degree element text.

Returns

OMathRadical

The added OMathRadical instance.

AddRun()

Adds a Run to the end of the Office Math zone.

public Run AddRun()

Returns

Run

The added Run.

AddRun(Style)

Adds a Run to the end of the Office Math zone.

public Run AddRun(Style style)

Parameters

style Style

The style (character or linked paragraph) for the added run.

Returns

Run

The added Run.

AddRun(string, Style)

Adds a Run to the end of the Office Math zone.

public Run AddRun(string text, Style style)

Parameters

text string

The text of the inserted Run

style Style

The style (character or linked paragraph) for the added run.

Returns

Run

The added Run.

AddRun(string)

Adds a Run to the end of the Office Math zone.

public Run AddRun(string text)

Parameters

text string

The text of the added Run

Returns

Run

The added Run.

AddSimpleField(string, string)

Adds a SimpleField to the end of the Office Math zone.

public SimpleField AddSimpleField(string code, string result)

Parameters

code string

The field code.

result string

The result text of the inserted field.

Returns

SimpleField

The added SimpleField.

AddSimpleField(string)

Adds a SimpleField to the end of the Office Math zone.

public SimpleField AddSimpleField(string code)

Parameters

code string

The field code.

Returns

SimpleField

The added SimpleField.

AddSubscript()

Adds a new OMathSubscript to the end of the Office Math zone.

public OMathSubscript AddSubscript()

Returns

OMathSubscript

The added OMathSubscript instance.

AddSubscript(string, string)

Adds a new OMathSubscript to the end of the Office Math zone.

public OMathSubscript AddSubscript(string baseText, string subscriptText)

Parameters

baseText string

The base element text.

subscriptText string

The subscript element text.

Returns

OMathSubscript

The added OMathSubscript instance.

AddSubSuperscript()

Adds a new OMathSubSuperscript to the end of the Office Math zone.

public OMathSubSuperscript AddSubSuperscript()

Returns

OMathSubSuperscript

The added OMathSubSuperscript instance.

AddSubSuperscript(string, string, string)

Adds a new OMathSubSuperscript to the end of the Office Math zone.

public OMathSubSuperscript AddSubSuperscript(string baseText, string subscriptText, string superscriptText)

Parameters

baseText string

The base element text.

subscriptText string

The subscript element text.

superscriptText string

The superscript element text.

Returns

OMathSubSuperscript

The added OMathSubSuperscript instance.

AddSuperscript()

Adds a new OMathSuperscript to the end of the Office Math zone.

public OMathSuperscript AddSuperscript()

Returns

OMathSuperscript

The added OMathSuperscript instance.

AddSuperscript(string, string)

Adds a new OMathSuperscript to the end of the Office Math zone.

public OMathSuperscript AddSuperscript(string baseText, string superscriptText)

Parameters

baseText string

The base element text.

superscriptText string

The superscript element text.

Returns

OMathSuperscript

The added OMathSuperscript instance.