In This Article

CSharpOutliningSource Class

Represents a C# language range-based outlining source.

public class CSharpOutliningSource : RangeOutliningSourceBase, IOutliningSource
Inheritance:
object RangeOutliningSourceBase object
Implements:
IOutliningSource

Constructors

CSharpOutliningSource(ITextSnapshot)

Represents a C# language range-based outlining source.

public CSharpOutliningSource(ITextSnapshot snapshot)
Parameter Type Description
snapshot ITextSnapshot

The ITextSnapshot to use for this outlining source.

Properties

CanOutlineCodeLevelConstructs

Indicates whether the outlining source can create outlining nodes for code-level constructs such as block statements.

public bool CanOutlineCodeLevelConstructs { get; set; }

Property Value

bool

Methods

AddNodesFromParseData(IDotNetParseData)

Adds nodes recursively based on AST information in the specified parse data.

public virtual void AddNodesFromParseData(IDotNetParseData parseData)
Parameter Type Description
parseData IDotNetParseData

The IDotNetParseData containing AST data.

AddNodesFromParseData(IDotNetParseData, ITextBufferReader?)

Adds nodes recursively based on AST information in the specified parse data.

protected void AddNodesFromParseData(IDotNetParseData parseData, ITextBufferReader? reader)
Parameter Type Description
parseData IDotNetParseData

The IDotNetParseData containing AST data.

reader ITextBufferReader

The ITextBufferReader to use.

AddNodesRecursive(ITextBufferReader?, IAstNode?)

Recursively adds outlining nodes for a given IAstNode.

protected virtual void AddNodesRecursive(ITextBufferReader? reader, IAstNode? astNode)
Parameter Type Description
reader ITextBufferReader

The optional ITextBufferReader to use for examining text.

astNode IAstNode

The IAstNode to examine.

Inherited Members

Extension Methods