In This Article

IOutliner Interface

Provides the base requirements of an object that can generate an IOutliningSource for a language, which is used to drive automatic code outlining (folding) features.

public interface IOutliner

Remarks

This interface type can be registered with an ISyntaxLanguage using the RegisterService(Object, Object) method. Once an object that implements this interface is registered with the language for this interface type, its features can be used by the language.

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.

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.

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.