Trevixal API
    Preparing search index...

    Class FormatPainter

    Copies formatting from one place in the document and applies it to another: the "format painter" every word processor has.

    Single-arm applies once and disarms; copyAndLock stays armed until turned off, which is the double-click behaviour users expect.

    Index
    • Apply the captured formatting to the current selection. Disarms afterwards unless locked. Returns false when nothing was applied.

      Returns boolean

    • Disarm without clearing what was copied.

      Returns void

    • Capture the formatting at the current selection and arm for one use.

      Returns boolean

    • Capture and stay armed until cancel, the double-click mode.

      Returns boolean