IBraceCompletionContextProvider.TryCreateContext 메서드
Creates an IBraceCompletionContext to handle language specific actions such as parsing and formatting.
네임스페이스: Microsoft.VisualStudio.Text.BraceCompletion
어셈블리: Microsoft.VisualStudio.Text.UI(Microsoft.VisualStudio.Text.UI.dll)
구문
‘선언
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
매개 변수
textView
형식: Microsoft.VisualStudio.Text.Editor.ITextViewThe view containing the openingPoint.
openingPoint
형식: Microsoft.VisualStudio.Text.SnapshotPointThe insertion point of the openingBrace.
openingBrace
형식: CharThe opening brace that has been typed by the user.
closingBrace
형식: CharThe closing brace character.
context
형식: Microsoft.VisualStudio.Text.BraceCompletion.IBraceCompletionContext%The brace completion context if it has been created.
반환 값
형식: Boolean
true if the openingPoint was a valid point in the buffer to start a IBraceCompletionSession.
설명
Opening points within strings and comments are usually invalid points to start an IBraceCompletionSession and will return false.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.