Поделиться через


IBraceCompletionContextProvider - интерфейс

An extension point used to create an IBraceCompletionContext to provide language-specific handling on top of the default TIBraceCompletionSession objects.

Пространство имен:  Microsoft.VisualStudio.Text.BraceCompletion
Сборка:  Microsoft.VisualStudio.Text.UI (в Microsoft.VisualStudio.Text.UI.dll)

Синтаксис

'Декларация
Public Interface IBraceCompletionContextProvider
public interface IBraceCompletionContextProvider
public interface class IBraceCompletionContextProvider
type IBraceCompletionContextProvider =  interface end
public interface IBraceCompletionContextProvider

Тип IBraceCompletionContextProvider предоставляет следующие члены.

Методы

  Имя Описание
Открытый метод TryCreateContext Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.

В начало страницы

Заметки

This class extends the default brace completion behavior provided by. IBraceCompletionDefaultProvider. It allows for additional formatting after the closing brace has been inserted as well as custom handling of overtype scenarios and new line insertions.

For a fully customizeable IBraceCompletionSession, use IBraceCompletionSessionProvider.

Примеры

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(IBraceCompletionContextProvider))]

См. также

Ссылки

Microsoft.VisualStudio.Text.BraceCompletion - пространство имен