[]
        
(Showing Draft Content)

ITextRun

Interface ITextRun


public interface ITextRun
Represents a range of characters in a IRichText object.
  • Method Details

    • getFont

      IFont getFont()
      Gets the font settings of current text run.
    • getText

      String getText()
      Gets the text of current text run.
      Returns:
      The text of the current text run.
    • setText

      void setText(String text)
      Sets text for current text run.
    • delete

      void delete()
      Deletes this ITextRun from its parent IRichText object.
    • insertBefore

      ITextRun insertBefore(String text)
      Inserts a new ITextRun before current text run.
      Parameters:
      text - the text of new inserted run.
      Returns:
      a new created text run.
    • insertAfter

      ITextRun insertAfter(String text)
      Inserts a new ITextRun after current text run.
      Parameters:
      text - the text of new inserted run.
      Returns:
      a new created text run.