Collapses lines for the purpose of scrolling. DocumentLines marked as collapsed will be hidden and not used to start the generation of a VisualLine.
This method is meant for VisualLineElementGenerators that cause VisualLines to span multiple DocumentLines. Do not call it without providing a corresponding VisualLineElementGenerator. If you want to create collapsible text sections, see FoldingManager. Note that if you want a VisualLineElement to span from line N to line M, then you need to collapse only the lines N+1 to M. Do not collapse line N itself. When you no longer need the section to be collapsed, call Uncollapse()()()() on the CollapsedLineSection returned from this method.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 184.108.40.20638