IBraceCompletionSession 接口

Represents a brace completion session for the purpose of tracking a pair of braces and handling actions occurring between the OpeningPoint and ClosingPoint.

命名空间:  Microsoft.VisualStudio.Text.BraceCompletion
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
Public Interface IBraceCompletionSession
public interface IBraceCompletionSession
public interface class IBraceCompletionSession
type IBraceCompletionSession =  interface end
public interface IBraceCompletionSession

IBraceCompletionSession 类型公开以下成员。

属性

  名称 说明
公共属性 ClosingBrace Gets the closing brace character.
公共属性 ClosingPoint Gets the ending point of the session.
公共属性 OpeningBrace Gets the opening brace character.
公共属性 OpeningPoint Gets the starting point of the session.
公共属性 SubjectBuffer Gets the subject buffer in which the brace completion session is occurring.
公共属性 TextView Gets the text view in which the brace completion session is occurring.

页首

方法

  名称 说明
公共方法 Finish Called after the session has been removed from the stack.
公共方法 PostBackspace Called by the editor after the character has been removed.
公共方法 PostDelete Called by the editor after the delete action.
公共方法 PostOverType Called by the editor after the closing brace character has been typed.
公共方法 PostReturn Called by the editor after the newline has been inserted.
公共方法 PostTab Called by the editor after the tab has been inserted.
公共方法 PreBackspace Called by the editor before the character has been removed.
公共方法 PreDelete Called by the editor when delete is pressed within the session.
公共方法 PreOverType Called by the editor when the closing brace character has been typed and before it is inserted into the buffer.
公共方法 PreReturn Called by the editor when return is pressed within the session.
公共方法 PreTab Called by the editor when tab has been pressed and before it is inserted into the buffer.
公共方法 Start Called before the session is added to the stack.

页首

请参阅

参考

Microsoft.VisualStudio.Text.BraceCompletion 命名空间