Class MathText

java.lang.Object
com.independentsoft.office.word.math.MathText
All Implemented Interfaces:
IContentElement, IRunContent

public class MathText extends Object implements IRunContent
The Class MathText.
  • Constructor Details

    • MathText

      public MathText()
      Instantiates a new math text.
    • MathText

      public MathText(String text)
      Instantiates a new math text.
      Parameters:
      text - the text
    • MathText

      public MathText(String text, boolean preserveSpace)
      Instantiates a new math text.
      Parameters:
      text - the text
      preserveSpace - the preserve space
  • Method Details

    • getContentElements

      public List<IContentElement> getContentElements()
      Specified by:
      getContentElements in interface IContentElement
    • clone

      public MathText clone()
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IRunContent
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      the value
    • setValue

      public void setValue(String text)
      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