@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class Selection<H>Abstract

    The shared base for a document/spreadsheet/presentation selection. It owns the uniform clipboard verbs — Selection.copy, Selection.cut, Selection.paste — which round-trip through the engine's internal rich clipboard so a paste preserves formatting. Each facade narrows this base with its own caret and range API.

    Type Parameters

    Hierarchy (View Summary)

    Index
    • get isEmpty(): boolean

      Whether the selection is a collapsed caret (no range selected).

      Returns boolean

    • Collapse the selection to a caret.

      Returns this

    • Copy the selection into the engine's clipboard.

      Returns this

    • Copy the selection into the clipboard, then delete it.

      Returns this

    • Insert the clipboard contents at the caret, replacing any selection.

      Returns this