interface Selection {
    addEventListener(name, callback, capturing?): void;
    addRange(range): void;
    clearSelection(): void;
    fromJSON(selection): void;
    fromOrientedRange(range): void;
    getAllRanges(): Ace.Range[];
    getAnchor(): Position;
    getCursor(): Position;
    getRange(): Ace.Range;
    getWordRange(): void;
    isBackwards(): boolean;
    isEmpty(): boolean;
    isMultiLine(): boolean;
    moveCursorBy(rows, chars): void;
    moveCursorDown(): void;
    moveCursorFileEnd(): void;
    moveCursorFileStart(): void;
    moveCursorLeft(): void;
    moveCursorLineEnd(): void;
    moveCursorLineStart(): void;
    moveCursorLongWordLeft(): void;
    moveCursorLongWordRight(): void;
    moveCursorRight(): void;
    moveCursorTo(row, column, keepDesiredColumn?): void;
    moveCursorToPosition(position): void;
    moveCursorToScreen(row, column, keepDesiredColumn): void;
    moveCursorUp(): void;
    moveCursorWordLeft(): void;
    moveCursorWordRight(): void;
    off(name, callback): void;
    on(name, callback, capturing?): void;
    once(name, callback): void;
    removeAllListeners(name?): void;
    removeDefaultHandler(name, callback): void;
    removeEventListener(name, callback): void;
    removeListener(name, callback): void;
    selectAWord(): void;
    selectAll(): void;
    selectDown(): void;
    selectFileEnd(): void;
    selectFileStart(): void;
    selectLeft(): void;
    selectLine(): void;
    selectLineEnd(): void;
    selectLineStart(): void;
    selectRight(): void;
    selectTo(row, column): void;
    selectToPosition(pos): void;
    selectUp(): void;
    selectWord(): void;
    selectWordLeft(): void;
    selectWordRight(): void;
    setAnchor(row, column): void;
    setCursor(row, column): void;
    setDefaultHandler(name, callback): void;
    setRange(range, reverse?): void;
    setSelectionRange(match): void;
    toJSON(): SavedSelection | SavedSelection[];
}

Hierarchy (view full)

Methods

  • Returns boolean

  • Returns boolean

  • Parameters

    • rows: number
    • chars: number

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • row: number
    • column: number
    • Optional keepDesiredColumn: boolean

    Returns void

  • Parameters

    • position: any

    Returns void

  • Parameters

    • row: number
    • column: number
    • keepDesiredColumn: boolean

    Returns void

  • Returns void

  • Returns void

  • Parameters

    • name: string
    • callback: Function
    • Optional capturing: boolean

    Returns void

  • Parameters

    • row: number
    • column: number

    Returns void

  • Parameters

    • pos: any

    Returns void

  • Parameters

    • row: number
    • column: number

    Returns void

  • Parameters

    • row: number
    • column: number

    Returns void

  • Parameters

    • range: Ace.Range
    • Optional reverse: boolean

    Returns void

  • Parameters

    • match: any

    Returns void

Generated using TypeDoc