Adds a new fold.
Adds a new fold.
Optional
range: RangeThe new created Fold object or an existing fold object in case the passed in range fits an existing fold exactly.
The new created Fold object or an existing fold object in case the passed in range fits an existing fold exactly.
Optional
startRow: numberOptional
endRow: numberOptional
depth: numberOptional
test: FunctionReturns all folds in the document
Returns all folds in the document
Optional
dir: numberLooks up a fold at a given row/column. Possible values for side: -1: ignore a fold if fold.start = row/column +1: ignore a fold if fold.end = row/column
Looks up a fold at a given row/column. Possible values for side: -1: ignore a fold if fold.start = row/column +1: ignore a fold if fold.end = row/column
Optional
side: numberOptional
endRow: numberOptional
endColumn: numberOptional
startRow: numberOptional
startColumn: numberReturns the string between folds at the given position.
E.g.
foo
where | means the position of row/column
The trim option determs if the return string should be trimed according to the "side" passed with the trim value:
E.g.
foo
Returns the string between folds at the given position.
E.g.
foo
where | means the position of row/column
The trim option determs if the return string should be trimed according to the "side" passed with the trim value:
E.g.
foo
Optional
trim: numberOptional
foldLine: FoldLineReturns all folds in the given range. Note, that this will return folds
Returns all folds in the given range. Note, that this will return folds
Returns the fold which starts after or contains docRow
Optional
ignoreCurrent: booleanOptional
startFoldRow: FoldLineOptional
startFoldRow: FoldLineChecks if a given documentRow is folded. This is true if there are some folded parts such that some parts of the line is still visible.
Checks if a given documentRow is folded. This is true if there are some folded parts such that some parts of the line is still visible.
Optional
startFoldRow: FoldLineOptional
tryToUnfold: booleanOptional
toggleParent: booleanOptional
location: number | Point | Range | Range[]Optional
expandInner: booleanGenerated using TypeDoc
Param: foldLine
Returns