In This Article

TokenOutliner<TOutliningSource> Class

Provides an IOutliner capable of creating TokenOutliningSourceBase objects which have a constructor that accepts a single ITextSnapshot instance parameter.

public class TokenOutliner<TOutliningSource> : IOutliner where TOutliningSource : TokenOutliningSourceBase
Type Parameters:
TOutliningSource -

The Type of TokenOutliningSourceBase that this provider creates. The outlining source type must have a constructor that accepts a single ITextSnapshot instance parameter.

Inheritance:
object object
Implements:
IOutliner

Constructors

TokenOutliner()

Initializes a new instance of the TokenOutliner class.

public TokenOutliner()

Properties

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.

Inherited Members