rmapi-js
    Preparing search index...

    Class TextEditor

    a page's typed text, to edit; offsets count UTF-16 code units

    Index
    • erase the characters from start to end

      Parameters

      • start: number
      • end: number

      Returns void

      RangeError if start or end is not an integer from 0 to 2^32 - 1

    • insert text at at, after an inline format there

      Parameters

      • at: number
      • text: string

      Returns void

      RangeError if at is not an integer from 0 to 2^32 - 1

    • insert one inline format code, named by InlineFormat, at at

      Parameters

      • at: number
      • code: number

      Returns void

      RangeError if at or code is not an integer from 0 to 2^32 - 1

    • insert text at at in format, as a tablet writes a word typed in it

      Parameters

      Returns void

      RangeError if at is not an integer from 0 to 2^32 - 1

    • replace the characters from start to end with text

      Parameters

      • start: number
      • end: number
      • text: string

      Returns void

      RangeError if start or end is not an integer from 0 to 2^32 - 1

    • set the style, named by ParagraphStyle, of the paragraph holding at

      Parameters

      • at: number
      • style: number

      Returns void

      RangeError if at is not an integer from 0 to 2^32 - 1, or style is not one from 0 to 255

    • set the width setting, named by TextWidth, and the box to the width a tablet gives it

      Parameters

      • width: number

      Returns void

      RangeError if width is not an integer from 0 to 255