protected Integer CaretPosition { get; }
'Declaration Protected Read Property CaretPosition As Integer
VB
Dim caretPosition As Integer = textComponent.CaretPosition