CSharpOutliner Class
Provides a C#
language outliner service.
public class CSharpOutliner : IOutliner
- Inheritance:
- object object
- Implements:
- IOutliner
Constructors
CSharpOutliner()
Initializes an instance of the class.
public CSharpOutliner()
Properties
CanOutlineCodeLevelConstructs
Gets or sets whether the outlining source can create outlining nodes for code-level constructs such as block statements.
public bool CanOutlineCodeLevelConstructs { get; set; }
Property Value
- bool:
true
if the outlining source can create outlining nodes for code-level constructs such as block statements; otherwise,false
.
UpdateTrigger
Gets an AutomaticOutliningUpdateTrigger indicating whether automatic outlining should update in the main thread following a text change, or rather be driven via parse data results.
public AutomaticOutliningUpdateTrigger UpdateTrigger { get; }
Property Value
- AutomaticOutliningUpdateTrigger:
An AutomaticOutliningUpdateTrigger indicating the trigger by which automatic outlining should update.
Methods
GetOutliningSource(ITextSnapshot)
Returns an IOutliningSource for the specified ITextSnapshot.
public IOutliningSource GetOutliningSource(ITextSnapshot snapshot)
Parameter | Type | Description |
---|---|---|
snapshot | ITextSnapshot | The ITextSnapshot for which to return an outlining source. |
Returns
- IOutliningSource:
An IOutliningSource for the specified ITextSnapshot.