Class AbstractFoldingStrategy
Base class for folding strategies.
public abstract class AbstractFoldingStrategy
- Inheritance
-
AbstractFoldingStrategy
- Derived
- Inherited Members
Methods
CreateNewFoldings(TextDocument, out int)
Create ICSharpCode.AvalonEdit.Folding.NewFoldings for the specified document.
public abstract IEnumerable<NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset)
Parameters
document
TextDocumentDocument for folding.
firstErrorOffset
intThe offset of the first error.
Returns
- IEnumerable<NewFolding>
The foldings.
UpdateFoldings(FoldingManager, TextDocument)
Create ICSharpCode.AvalonEdit.Folding.NewFoldings for the specified document and updates the folding manager with them.
public void UpdateFoldings(FoldingManager manager, TextDocument document)
Parameters
manager
FoldingManagerFolding manager.
document
TextDocumentText document.