Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
ace
Ace
Selection
Interface Selection
interface
Selection
{
addEventListener
(
name
,
callback
,
capturing
?
)
:
void
;
addRange
(
range
)
:
void
;
clearSelection
(
)
:
void
;
fromJSON
(
selection
)
:
void
;
fromOrientedRange
(
range
)
:
void
;
getAllRanges
(
)
:
Ace
.
Range
[]
;
getAnchor
(
)
:
Ace
.
Position
;
getCursor
(
)
:
Ace
.
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
)
Ace
.
EventEmitter
Selection
Index
Methods
add
Event
Listener
add
Range
clear
Selection
fromJSON
from
Oriented
Range
get
All
Ranges
get
Anchor
get
Cursor
get
Range
get
Word
Range
is
Backwards
is
Empty
is
Multi
Line
move
Cursor
By
move
Cursor
Down
move
Cursor
File
End
move
Cursor
File
Start
move
Cursor
Left
move
Cursor
Line
End
move
Cursor
Line
Start
move
Cursor
Long
Word
Left
move
Cursor
Long
Word
Right
move
Cursor
Right
move
Cursor
To
move
Cursor
To
Position
move
Cursor
To
Screen
move
Cursor
Up
move
Cursor
Word
Left
move
Cursor
Word
Right
off
on
once
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Listener
selectAWord
select
All
select
Down
select
File
End
select
File
Start
select
Left
select
Line
select
Line
End
select
Line
Start
select
Right
select
To
select
To
Position
select
Up
select
Word
select
Word
Left
select
Word
Right
set
Anchor
set
Cursor
set
Default
Handler
set
Range
set
Selection
Range
toJSON
Methods
add
Event
Listener
add
Event
Listener
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
add
Range
add
Range
(
range
)
:
void
Parameters
range
:
Ace
.
Range
Returns
void
clear
Selection
clear
Selection
(
)
:
void
Returns
void
fromJSON
fromJSON
(
selection
)
:
void
Parameters
selection
:
SavedSelection
|
SavedSelection
[]
Returns
void
from
Oriented
Range
from
Oriented
Range
(
range
)
:
void
Parameters
range
:
Ace
.
Range
Returns
void
get
All
Ranges
get
All
Ranges
(
)
:
Ace
.
Range
[]
Returns
Ace
.
Range
[]
get
Anchor
get
Anchor
(
)
:
Ace
.
Position
Returns
Ace
.
Position
get
Cursor
get
Cursor
(
)
:
Ace
.
Position
Returns
Ace
.
Position
get
Range
get
Range
(
)
:
Ace
.
Range
Returns
Ace
.
Range
get
Word
Range
get
Word
Range
(
)
:
void
Returns
void
is
Backwards
is
Backwards
(
)
:
boolean
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
is
Multi
Line
is
Multi
Line
(
)
:
boolean
Returns
boolean
move
Cursor
By
move
Cursor
By
(
rows
,
chars
)
:
void
Parameters
rows
:
number
chars
:
number
Returns
void
move
Cursor
Down
move
Cursor
Down
(
)
:
void
Returns
void
move
Cursor
File
End
move
Cursor
File
End
(
)
:
void
Returns
void
move
Cursor
File
Start
move
Cursor
File
Start
(
)
:
void
Returns
void
move
Cursor
Left
move
Cursor
Left
(
)
:
void
Returns
void
move
Cursor
Line
End
move
Cursor
Line
End
(
)
:
void
Returns
void
move
Cursor
Line
Start
move
Cursor
Line
Start
(
)
:
void
Returns
void
move
Cursor
Long
Word
Left
move
Cursor
Long
Word
Left
(
)
:
void
Returns
void
move
Cursor
Long
Word
Right
move
Cursor
Long
Word
Right
(
)
:
void
Returns
void
move
Cursor
Right
move
Cursor
Right
(
)
:
void
Returns
void
move
Cursor
To
move
Cursor
To
(
row
,
column
,
keepDesiredColumn
?
)
:
void
Parameters
row
:
number
column
:
number
Optional
keepDesiredColumn
:
boolean
Returns
void
move
Cursor
To
Position
move
Cursor
To
Position
(
position
)
:
void
Parameters
position
:
any
Returns
void
move
Cursor
To
Screen
move
Cursor
To
Screen
(
row
,
column
,
keepDesiredColumn
)
:
void
Parameters
row
:
number
column
:
number
keepDesiredColumn
:
boolean
Returns
void
move
Cursor
Up
move
Cursor
Up
(
)
:
void
Returns
void
move
Cursor
Word
Left
move
Cursor
Word
Left
(
)
:
void
Returns
void
move
Cursor
Word
Right
move
Cursor
Word
Right
(
)
:
void
Returns
void
off
off
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
on
on
(
name
,
callback
,
capturing
?
)
:
void
Parameters
name
:
string
callback
:
Function
Optional
capturing
:
boolean
Returns
void
once
once
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
All
Listeners
remove
All
Listeners
(
name
?
)
:
void
Parameters
Optional
name
:
string
Returns
void
remove
Default
Handler
remove
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Event
Listener
remove
Event
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
remove
Listener
remove
Listener
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
selectAWord
selectAWord
(
)
:
void
Returns
void
select
All
select
All
(
)
:
void
Returns
void
select
Down
select
Down
(
)
:
void
Returns
void
select
File
End
select
File
End
(
)
:
void
Returns
void
select
File
Start
select
File
Start
(
)
:
void
Returns
void
select
Left
select
Left
(
)
:
void
Returns
void
select
Line
select
Line
(
)
:
void
Returns
void
select
Line
End
select
Line
End
(
)
:
void
Returns
void
select
Line
Start
select
Line
Start
(
)
:
void
Returns
void
select
Right
select
Right
(
)
:
void
Returns
void
select
To
select
To
(
row
,
column
)
:
void
Parameters
row
:
number
column
:
number
Returns
void
select
To
Position
select
To
Position
(
pos
)
:
void
Parameters
pos
:
any
Returns
void
select
Up
select
Up
(
)
:
void
Returns
void
select
Word
select
Word
(
)
:
void
Returns
void
select
Word
Left
select
Word
Left
(
)
:
void
Returns
void
select
Word
Right
select
Word
Right
(
)
:
void
Returns
void
set
Anchor
set
Anchor
(
row
,
column
)
:
void
Parameters
row
:
number
column
:
number
Returns
void
set
Cursor
set
Cursor
(
row
,
column
)
:
void
Parameters
row
:
number
column
:
number
Returns
void
set
Default
Handler
set
Default
Handler
(
name
,
callback
)
:
void
Parameters
name
:
string
callback
:
Function
Returns
void
set
Range
set
Range
(
range
,
reverse
?
)
:
void
Parameters
range
:
Ace
.
Range
Optional
reverse
:
boolean
Returns
void
set
Selection
Range
set
Selection
Range
(
match
)
:
void
Parameters
match
:
any
Returns
void
toJSON
toJSON
(
)
:
SavedSelection
|
SavedSelection
[]
Returns
SavedSelection
|
SavedSelection
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
add
Event
Listener
add
Range
clear
Selection
fromJSON
from
Oriented
Range
get
All
Ranges
get
Anchor
get
Cursor
get
Range
get
Word
Range
is
Backwards
is
Empty
is
Multi
Line
move
Cursor
By
move
Cursor
Down
move
Cursor
File
End
move
Cursor
File
Start
move
Cursor
Left
move
Cursor
Line
End
move
Cursor
Line
Start
move
Cursor
Long
Word
Left
move
Cursor
Long
Word
Right
move
Cursor
Right
move
Cursor
To
move
Cursor
To
Position
move
Cursor
To
Screen
move
Cursor
Up
move
Cursor
Word
Left
move
Cursor
Word
Right
off
on
once
remove
All
Listeners
remove
Default
Handler
remove
Event
Listener
remove
Listener
selectAWord
select
All
select
Down
select
File
End
select
File
Start
select
Left
select
Line
select
Line
End
select
Line
Start
select
Right
select
To
select
To
Position
select
Up
select
Word
select
Word
Left
select
Word
Right
set
Anchor
set
Cursor
set
Default
Handler
set
Range
set
Selection
Range
toJSON
Ace API Reference
ace
src
ace
anchor
apply_delta
autocomplete
background_tokenizer
bidihandler
clipboard
commands
command_manager
default_commands
incremental_search_commands
multi_select_commands
occur_commands
config
css/editor-css
document
edit_session
editor
ext
Loading...
Generated using
TypeDoc