Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISelectionOwner

A selection owner.

Hierarchy

Index

Properties

uuid

uuid: string

The uuid of this selection owner.

Methods

getCursorPosition

getSelection

getSelections

  • Gets the selections for all the cursors, never null or empty.

    Returns IRange[]

setCursorPosition

  • setCursorPosition(position: IPosition): void
  • Set the primary position of the cursor.

    Parameters

    • position: IPosition

      The new primary position.

      Notes

      This will remove any secondary cursors.

    Returns void

setSelection

  • setSelection(selection: IRange): void
  • Set the primary selection.

    Parameters

    • selection: IRange

      The desired selection range.

      Notes

      This will remove any secondary cursors.

    Returns void

setSelections

  • setSelections(selections: IRange[]): void
  • Sets the selections for all the cursors.

    Parameters

    • selections: IRange[]

      The new selections.

      Notes

      Cursors will be removed or added, as necessary. Passing an empty array resets a cursor position to the start of a document.

    Returns void

Generated using TypeDoc