AvalonEdit
CollapseLines Method (start, end)
NamespacesICSharpCode.AvalonEdit.RenderingTextViewCollapseLines(DocumentLine, DocumentLine)
Collapses lines for the purpose of scrolling. DocumentLines marked as collapsed will be hidden and not used to start the generation of a VisualLine.
Declaration Syntax
C#Visual BasicVisual C++
public CollapsedLineSection CollapseLines(
	DocumentLine start,
	DocumentLine end
)
Public Function CollapseLines ( _
	start As DocumentLine, _
	end As DocumentLine _
) As CollapsedLineSection
public:
CollapsedLineSection^ CollapseLines(
	DocumentLine^ start, 
	DocumentLine^ end
)
Parameters
start (DocumentLine)
end (DocumentLine)
Remarks
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: 5.0.0.4238