Stores a list of foldings for a specific TextView and TextDocument.
|C#||Visual Basic||Visual C++|
public class FoldingManager : IWeakEventListener
Public Class FoldingManager _ Implements IWeakEventListener
public ref class FoldingManager : IWeakEventListener
Creates a new FoldingManager instance.
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.
Removes all folding sections.
Creates a folding for the specified text section.
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.(Inherited from Object.)
Gets all foldings that start exactly at startOffset.
Gets all foldings that contain offset.
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the first offset greater or equal to startOffset where a folded folding starts. Returns -1 if there are no foldings after startOffset.
Gets the first folding with a StartOffset greater or equal to startOffset. Returns null if there are no foldings after startOffset.
Gets the Type of the current instance.(Inherited from Object.)
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.
Creates a shallow copy of the current Object.(Inherited from Object.)
|ReceiveWeakEvent(Type, Object, EventArgs)|
Receives events from the centralized event manager.
Removes a folding section from this manager.
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.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 220.127.116.1138