12 references to CaretPosition
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (12)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
196
Return New ReplaceSpanResult(New SnapshotSpan(_subjectBuffer.CurrentSnapshot, _state.
CaretPosition
, 0),
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (11)
205
If element.StartTag IsNot Nothing AndAlso element.StartTag.Span.End = state.
CaretPosition
AndAlso
206
element.EndTag IsNot Nothing AndAlso element.EndTag.SpanStart = state.
CaretPosition
Then
235
Dim caretLine = subjectBuffer.CurrentSnapshot.GetLineNumberFromPosition(state.
CaretPosition
)
299
result.Apply(textView, subjectBuffer, state.
CaretPosition
, _smartIndentationService, _undoHistoryRegistry, _editorOperationsFactoryService)
311
edit.Insert(state.
CaretPosition
, state.NewLineCharacter + aligningWhitespace)
316
textView.TryMoveCaretToAndEnsureVisible(New SnapshotPoint(subjectBuffer.CurrentSnapshot, state.
CaretPosition
))
374
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)
402
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)
430
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endTagText)
454
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End + 1, endText)
483
Return InsertEndTextAndUpdateCaretPosition(textView, subjectBuffer, state.
CaretPosition
, state.TokenToLeft.Span.End, endText)