CaretPosition Property (JTextComponent)

Action

Gets the position of the text insertion caret for the text component. The value is zero-based.

Syntax

'Declaration
Protected Read Property CaretPosition As Integer

Access

Read only.

Examples

Dim caretPosition As Integer = textComponent.CaretPosition