Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.
Namespace: Microsoft.VisualStudio.Text.BraceCompletion
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function TryCreateContext ( _
textView As ITextView, _
openingPoint As SnapshotPoint, _
openingBrace As Char, _
closingBrace As Char, _
<OutAttribute> ByRef context As IBraceCompletionContext _
) As Boolean
bool TryCreateContext(
ITextView textView,
SnapshotPoint openingPoint,
char openingBrace,
char closingBrace,
out IBraceCompletionContext context
)
bool TryCreateContext(
ITextView^ textView,
SnapshotPoint openingPoint,
wchar_t openingBrace,
wchar_t closingBrace,
[OutAttribute] IBraceCompletionContext^% context
)
abstract TryCreateContext :
textView:ITextView *
openingPoint:SnapshotPoint *
openingBrace:char *
closingBrace:char *
context:IBraceCompletionContext byref -> bool
function TryCreateContext(
textView : ITextView,
openingPoint : SnapshotPoint,
openingBrace : char,
closingBrace : char,
context : IBraceCompletionContext
) : boolean
Parameters
textView
Type: Microsoft.VisualStudio.Text.Editor.ITextViewThe view containing the openingPoint.
openingPoint
Type: Microsoft.VisualStudio.Text.SnapshotPointThe insertion point of the openingBrace.
openingBrace
Type: CharThe opening brace that has been typed by the user.
closingBrace
Type: CharThe closing brace character.
context
Type: Microsoft.VisualStudio.Text.BraceCompletion.IBraceCompletionContext%The brace completion context if it has been created.
Return Value
Type: Boolean
true if the openingPoint was a valid point in the buffer to start a IBraceCompletionSession.
Remarks
Opening points within strings and comments are usually invalid points to start an IBraceCompletionSession and will return false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.