IBraceCompletionSession Interface

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

Namespace:  Microsoft.VisualStudio.Text.BraceCompletion
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public Interface IBraceCompletionSession
public interface IBraceCompletionSession
public interface class IBraceCompletionSession
type IBraceCompletionSession =  interface end
public interface IBraceCompletionSession

The IBraceCompletionSession type exposes the following members.

Properties

  Name Description
Public property ClosingBrace Gets the closing brace character.
Public property ClosingPoint Gets the ending point of the session.
Public property OpeningBrace Gets the opening brace character.
Public property OpeningPoint Gets the starting point of the session.
Public property SubjectBuffer Gets the subject buffer in which the brace completion session is occurring.
Public property TextView Gets the text view in which the brace completion session is occurring.

Top

Methods

  Name Description
Public method Finish Called after the session has been removed from the stack.
Public method PostBackspace Called by the editor after the character has been removed.
Public method PostDelete Called by the editor after the delete action.
Public method PostOverType Called by the editor after the closing brace character has been typed.
Public method PostReturn Called by the editor after the newline has been inserted.
Public method PostTab Called by the editor after the tab has been inserted.
Public method PreBackspace Called by the editor before the character has been removed.
Public method PreDelete Called by the editor when delete is pressed within the session.
Public method PreOverType Called by the editor when the closing brace character has been typed and before it is inserted into the buffer.
Public method PreReturn Called by the editor when return is pressed within the session.
Public method PreTab Called by the editor when tab has been pressed and before it is inserted into the buffer.
Public method Start Called before the session is added to the stack.

Top

See Also

Reference

Microsoft.VisualStudio.Text.BraceCompletion Namespace