Table of Contents

Class AbstractFoldingStrategy

Namespace
Loehnert.Lisrt.Scripting.Editor.File.Python
Assembly
Loehnert.Lisrt.Scripting.dll

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 TextDocument

Document for folding.

firstErrorOffset int

The 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 FoldingManager

Folding manager.

document TextDocument

Text document.