Partager via


IBraceCompletionContext.AllowOverType Method

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.

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

Syntax

'Declaration
Function AllowOverType ( _
    session As IBraceCompletionSession _
) As Boolean
bool AllowOverType(
    IBraceCompletionSession session
)
bool AllowOverType(
    IBraceCompletionSession^ session
)
abstract AllowOverType : 
        session:IBraceCompletionSession -> bool
function AllowOverType(
    session : IBraceCompletionSession
) : boolean

Parameters

Return Value

Type: Boolean
Returns true if the context is a valid overtype scenario, otherwise false.

Remarks

The closing brace character will not be inserted into the buffer until after this method returns.

.NET Framework Security

See Also

Reference

IBraceCompletionContext Interface

Microsoft.VisualStudio.Text.BraceCompletion Namespace