interface Folding { foldWidgets : any [] ; getFoldWidget : any ; getFoldWidgetRange : any ; addFold ( placeholder ,
range ? ) : Fold ; addFolds ( folds ) : void ; expandFold ( fold ) : void ; expandFolds ( folds ) : void ; foldAll ( startRow ? ,
endRow ? ,
depth ? ,
test ? ) : void ; foldAllComments ( ) : void ; foldToLevel ( level ) : void ; getAllFolds ( ) : Fold [] ; getCommentFoldRange ( row ,
column ,
dir ? ) : Range ; getDisplayLine ( row ,
endColumn ,
startRow ,
startColumn ) : string ; getFoldAt ( row ,
column ,
side ? ) : Fold ; getFoldDisplayLine ( foldLine ,
endRow ? ,
endColumn ? ,
startRow ? ,
startColumn ? ) : string ; getFoldLine ( docRow ,
startFoldLine ? ) : FoldLine ; getFoldStringAt ( row ,
column ,
trim ? ,
foldLine ? ) : string ; getFoldedRowCount ( first ,
last ) : number ; getFoldsInRange ( range ) : Fold [] ; getFoldsInRangeList ( ranges ) : Fold [] ; getNextFoldLine ( docRow ,
startFoldLine ? ) : FoldLine ; getParentFoldRangeData ( row ,
ignoreCurrent ? ) : { firstRange ?: Range ; range ?: Range ; } ; getRowFoldEnd ( docRow ,
startFoldRow ? ) : number ; getRowFoldStart ( docRow ,
startFoldRow ? ) : number ; isRowFolded ( docRow ,
startFoldRow ? ) : boolean ; onFoldWidgetClick ( row ,
e ) : void ; removeFold ( fold ) : void ; removeFolds ( folds ) : void ; setFoldStyle ( style ) : void ; toggleFold ( tryToUnfold ? ) : void ; toggleFoldWidget ( toggleParent ? ) : void ; tokenizerUpdateFoldWidgets ( e ) : void ; unfold ( location ? ,
expandInner ? ) : Fold [] ; updateFoldWidgets ( delta ) : void ; } Properties fold Widgets fold Widgets : any []
get Fold Widget get Fold Widget : any
get Fold Widget Range get Fold Widget Range : any
Methods add Fold add Fold ( placeholder , range ? ) : Fold Parameters placeholder : string | Fold Optional
range : Range Returns Fold add Folds add Folds ( folds ) : void Returns void expand Fold expand Fold ( fold ) : void Returns void expand Folds expand Folds ( folds ) : void Returns void fold All fold All ( startRow ? , endRow ? , depth ? , test ? ) : void Parameters Optional
startRow : number Optional
endRow : number Optional
depth : number Optional
test : Function Returns void fold All Comments fold All Comments ( ) : void Returns void fold To Level fold To Level ( level ) : void Returns void get All Folds get All Folds ( ) : Fold [] Returns Fold [] get Comment Fold Range get Comment Fold Range ( row , column , dir ? ) : Range Parameters row : number column : number Optional
dir : number get Display Line get Display Line ( row , endColumn , startRow , startColumn ) : string Parameters row : number endColumn : number startRow : number startColumn : number Returns string get Fold At get Fold At ( row , column , side ? ) : Fold Parameters row : number column : number Optional
side : number Returns Fold get Fold Display Line get Fold Display Line ( foldLine , endRow ? , endColumn ? , startRow ? , startColumn ? ) : string Parameters foldLine : FoldLine Optional
endRow : number Optional
endColumn : number Optional
startRow : number Optional
startColumn : number Returns string get Fold Line get Fold Line ( docRow , startFoldLine ? ) : FoldLine Parameters docRow : number Optional
startFoldLine : FoldLine Returns FoldLine get Fold String At get Fold String At ( row , column , trim ? , foldLine ? ) : string Parameters row : number column : number Optional
trim : number Optional
foldLine : FoldLine Returns string get Folded Row Count get Folded Row Count ( first , last ) : number Parameters first : number last : number Returns number get Folds In Range get Folds In Range ( range ) : Fold [] Returns Fold [] get Folds In Range List get Folds In Range List ( ranges ) : Fold [] Returns Fold [] get Next Fold Line get Next Fold Line ( docRow , startFoldLine ? ) : FoldLine Parameters docRow : number Optional
startFoldLine : FoldLine Returns FoldLine get Parent Fold Range Data get Parent Fold Range Data ( row , ignoreCurrent ? ) : { firstRange ?: Range ; range ?: Range ; } Parameters row : number Optional
ignoreCurrent : boolean Returns { firstRange ?: Range ; range ?: Range ; } get Row Fold End get Row Fold End ( docRow , startFoldRow ? ) : number Parameters docRow : number Optional
startFoldRow : FoldLine Returns number get Row Fold Start get Row Fold Start ( docRow , startFoldRow ? ) : number Parameters docRow : number Optional
startFoldRow : FoldLine Returns number is Row Folded is Row Folded ( docRow , startFoldRow ? ) : boolean Parameters docRow : number Optional
startFoldRow : FoldLine Returns boolean on Fold Widget Click on Fold Widget Click ( row , e ) : void Returns void remove Fold remove Fold ( fold ) : void Returns void remove Folds remove Folds ( folds ) : void Returns void set Fold Style set Fold Style ( style ) : void Returns void toggle Fold toggle Fold ( tryToUnfold ? ) : void Parameters Optional
tryToUnfold : boolean Returns void toggle Fold Widget toggle Fold Widget ( toggleParent ? ) : void Parameters Optional
toggleParent : boolean Returns void tokenizer Update Fold Widgets tokenizer Update Fold Widgets ( e ) : void Returns void unfold unfold ( location ? , expandInner ? ) : Fold [] Returns Fold [] update Fold Widgets update Fold Widgets ( delta ) : void Returns void
Adds a new fold. The new created Fold object or an existing fold object in case the passed in range fits an existing fold exactly.