AvalonEdit
FoldingElementGenerator Class
NamespacesICSharpCode.AvalonEdit.FoldingFoldingElementGenerator
A VisualLineElementGenerator that produces line elements for folded FoldingSections.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class FoldingElementGenerator : VisualLineElementGenerator, 
	ITextViewConnect
Public NotInheritable Class FoldingElementGenerator _
	Inherits VisualLineElementGenerator _
	Implements ITextViewConnect
public ref class FoldingElementGenerator sealed : public VisualLineElementGenerator, 
	ITextViewConnect
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
FoldingElementGenerator()()()()
Initializes a new instance of the FoldingElementGenerator class

ConstructElement(Int32)
Constructs an element at the specified offset. May return null if no element should be constructed.
(Overrides VisualLineElementGenerator.ConstructElement(Int32).)
DefaultTextBrush
Default brush for folding element text. Value: Brushes.Gray

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FinishGeneration()()()()
De-initializes the generator.
(Inherited from VisualLineElementGenerator.)
FoldingManager
Gets/Sets the folding manager from which the foldings should be shown.

GetFirstInterestedOffset(Int32)
Gets the first offset >= startOffset where the generator wants to construct an element. Return -1 to signal no interest.
(Overrides VisualLineElementGenerator.GetFirstInterestedOffset(Int32).)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
StartGeneration(ITextRunConstructionContext)
Initializes the generator for the ITextRunConstructionContext
(Overrides VisualLineElementGenerator.StartGeneration(ITextRunConstructionContext).)
TextBrush
Gets/sets the brush used for folding element text.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
VisualLineElementGenerator
 FoldingElementGenerator

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