接口 ITextRun


public interface ITextRun
Represents a range of characters in a IRichText object.
  • 方法详细资料

    • getFont

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

      String getText()
      Gets the text of 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.
      参数:
      text - the text of new inserted run.
      返回:
      a new created text run.
    • insertAfter

      ITextRun insertAfter(String text)
      Inserts a new ITextRun after current text run.
      参数:
      text - the text of new inserted run.
      返回:
      a new created text run.