Class MathText
java.lang.Object
com.independentsoft.office.word.math.MathText
- All Implemented Interfaces:
IContentElement,IRunContent
The Class MathText.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanGets the preserve space.getValue()Gets the value.voidsetPreserveSpace(boolean preserveSpace)Sets the preserve space.voidSets the value.toString()
-
Constructor Details
-
MathText
public MathText()Instantiates a new math text. -
MathText
Instantiates a new math text.- Parameters:
text- the text
-
MathText
Instantiates a new math text.- Parameters:
text- the textpreserveSpace- the preserve space
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIRunContent- Overrides:
clonein classObject
-
toString
-
getValue
Gets the value.- Returns:
- the value
-
setValue
Sets the value.- Parameters:
text- the new value
-
getPreserveSpace
public boolean getPreserveSpace()Gets the preserve space.- Returns:
- the preserve space
-
setPreserveSpace
public void setPreserveSpace(boolean preserveSpace)Sets the preserve space.- Parameters:
preserveSpace- the new preserve space
-