共用方式為


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.

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

語法

'宣告
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

參數

傳回值

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

備註

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

.NET Framework 安全性

請參閱

參考

IBraceCompletionContext 介面

Microsoft.VisualStudio.Text.BraceCompletion 命名空間