In This Article

ICodeBlockFinder Interface

Provides the base requirements for a class that can find containing code blocks, generally used for code block selection expansion in an editor.

public interface ICodeBlockFinder

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.

Methods

FindContaining(TextSnapshotRange)

Returns the TextSnapshotRange of the containing code block.

TextSnapshotRange FindContaining(TextSnapshotRange snapshotRange)
Parameter Type Description
snapshotRange TextSnapshotRange

The TextSnapshotRange from which to begin the search.

Returns

TextSnapshotRange:

The TextSnapshotRange of the containing code block.