共用方式為


IBraceCompletionContext 介面

Represents a simple context used to extend the default brace completion behaviors to include language-specific behaviors such as parsing and formatting.

命名空間:  Microsoft.VisualStudio.Text.BraceCompletion
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
Public Interface IBraceCompletionContext
public interface IBraceCompletionContext
public interface class IBraceCompletionContext
type IBraceCompletionContext =  interface end
public interface IBraceCompletionContext

IBraceCompletionContext 類型會公開下列成員。

方法

  名稱 描述
公用方法 AllowOverType Called by the editor when the closing brace character has been typed. It does not occur if there is any non-whitespace character between the caret and the closing brace.
公用方法 Finish Occurs after the session has been removed from the stack.
公用方法 OnReturn Called by the editor when return is pressed while both braces are on the same line and no typing has occurred in the session.
公用方法 Start Called before the session is added to the stack.

回頁首

請參閱

參考

Microsoft.VisualStudio.Text.BraceCompletion 命名空間