A VisualLineElementGenerator that produces line elements for folded FoldingSections.
Declaration Syntax
C# | Visual Basic | Visual 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 Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
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) | (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()()()() | (Inherited from Object.) |
Inheritance Hierarchy
Object | ||
VisualLineElementGenerator | ||
FoldingElementGenerator |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238