AvalonEdit
FoldingManager Class
NamespacesICSharpCode.AvalonEdit.FoldingFoldingManager
Stores a list of foldings for a specific TextView and TextDocument.
Declaration Syntax
C#Visual BasicVisual C++
public class FoldingManager : IWeakEventListener
Public Class FoldingManager _
	Implements IWeakEventListener
public ref class FoldingManager : IWeakEventListener
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
FoldingManager(TextDocument)
Creates a new FoldingManager instance.

AllFoldings
Gets all foldings in this manager. The foldings are returned sorted by start offset; for multiple foldings at the same offset the order is undefined.

Clear()()()()
Removes all folding sections.

CreateFolding(Int32, Int32)
Creates a folding for the specified text section.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetFoldingsAt(Int32)
Gets all foldings that start exactly at startOffset.

GetFoldingsContaining(Int32)
Gets all foldings that contain offset.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetNextFoldedFoldingStart(Int32)
Gets the first offset greater or equal to startOffset where a folded folding starts. Returns -1 if there are no foldings after startOffset.

GetNextFolding(Int32)
Gets the first folding with a StartOffset greater or equal to startOffset. Returns null if there are no foldings after startOffset.

GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Install(TextArea)
Adds Folding support to the specified text area. Warning: The folding manager is only valid for the text area's current document. The folding manager must be uninstalled before the text area is bound to a different document.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.

RemoveFolding(FoldingSection)
Removes a folding section from this manager.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Uninstall(FoldingManager)
Uninstalls the folding manager.

UpdateFoldings(IEnumerable<(Of <<'(NewFolding>)>>), Int32)
Updates the foldings in this FoldingManager using the given new foldings. This method will try to detect which new foldings correspond to which existing foldings; and will keep the state (IsFolded) for existing foldings.

Inheritance Hierarchy
Object
FoldingManager

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238