Preparing search index...
The search index is not available
Ace API Reference
Ace API Reference
src/edit_session/fold
Fold
Class Fold
Hierarchy (
view full
)
RangeList
Fold
Index
Constructors
constructor
Properties
$bias
compare
Points
end
fold
Line
on
Change
placeholder
range
ranges
same
Row
session
start
sub
Folds
Methods
$on
Change
add
add
List
add
Sub
Fold
attach
clip
Rows
clone
contains
contains
Point
detach
merge
point
Index
range
At
Point
remove
All
restore
Range
set
Fold
Line
substract
Point
to
String
Constructors
constructor
new
Fold
(
range
,
placeholder
)
:
Fold
Parameters
range
:
Range
placeholder
:
any
Returns
Fold
Properties
$bias
$bias
:
number
compare
Points
compare
Points
:
(
(
p1
,
p2
)
=>
number
)
Type declaration
(
p1
,
p2
)
:
number
Compares
p1
and
p2
[[Point]]'s, useful for sorting
Parameters
p1
:
Point
p2
:
Point
Returns
number
end
end
:
Point
fold
Line
fold
Line
:
FoldLine
on
Change
on
Change
:
any
placeholder
placeholder
:
any
range
range
:
Range
ranges
ranges
:
any
[]
same
Row
same
Row
:
boolean
session
session
:
EditSession
start
start
:
Point
sub
Folds
sub
Folds
:
Fold
[]
Methods
$on
Change
$on
Change
(
delta
)
:
void
Parameters
delta
:
Delta
Returns
void
add
add
(
range
)
:
any
[]
Parameters
range
:
Range
Returns
any
[]
add
List
add
List
(
list
)
:
any
[]
Parameters
list
:
Range
[]
Returns
any
[]
add
Sub
Fold
add
Sub
Fold
(
fold
)
:
any
Parameters
fold
:
Fold
Returns
any
attach
attach
(
session
)
:
void
Parameters
session
:
EditSession
Returns
void
clip
Rows
clip
Rows
(
startRow
,
endRow
)
:
any
[]
Parameters
startRow
:
number
endRow
:
number
Returns
any
[]
clone
clone
(
)
:
Fold
Returns
Fold
contains
contains
(
row
,
column
)
:
boolean
Parameters
row
:
number
column
:
number
Returns
boolean
contains
Point
contains
Point
(
pos
)
:
boolean
Parameters
pos
:
Point
Returns
boolean
detach
detach
(
)
:
void
Returns
void
merge
merge
(
)
:
any
[]
Returns
any
[]
point
Index
point
Index
(
pos
,
excludeEdges
?
,
startIndex
?
)
:
number
Parameters
pos
:
Point
Optional
excludeEdges
:
boolean
Optional
startIndex
:
number
Returns
number
range
At
Point
range
At
Point
(
pos
)
:
any
Parameters
pos
:
Point
Returns
any
remove
All
remove
All
(
)
:
any
[]
Returns
any
[]
restore
Range
restore
Range
(
range
)
:
void
Parameters
range
:
IRange
Returns
void
set
Fold
Line
set
Fold
Line
(
foldLine
)
:
void
Parameters
foldLine
:
FoldLine
Returns
void
substract
Point
substract
Point
(
pos
)
:
any
[]
Parameters
pos
:
Point
Returns
any
[]
to
String
to
String
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
$bias
compare
Points
end
fold
Line
on
Change
placeholder
range
ranges
same
Row
session
start
sub
Folds
$on
Change
add
add
List
add
Sub
Fold
attach
clip
Rows
clone
contains
contains
Point
detach
merge
point
Index
range
At
Point
remove
All
restore
Range
set
Fold
Line
substract
Point
to
String
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
Compares
p1
andp2
[[Point]]'s, useful for sorting