Skip to content

SearchCursor

Methods

current()

current(): object

Current editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


findAll()

findAll(): object[]

All search results

Returns

object[]


findNext()

findNext(): object

Next editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


findPrevious()

findPrevious(): object

Previous editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


replace()

replace(replacement, origin): void

Replace current search result with specified text

Parameters

replacement: string

origin: string

Returns

void


replaceAll()

replaceAll(replacement, origin): void

Replace all search results with specified text

Parameters

replacement: string

origin: string

Returns

void