Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic

C#
Visual Basic

Azuki 1.7 Documentation
Document..::..CaretIndex Property
Document Class See Also Send Feedback

Gets index of where the caret is at (in char-index).

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

# Syntax

C#
    public int CaretIndex { get; }

Visual Basic
    Public ReadOnly Property CaretIndex As Integer
    	Get

#### Property Value

Type: Int32

# Remarks

This property gets the index of the 'caret;' the text insertion point.

In Azuki, selection always exists and is expressed by the range from anchor index to caret index. If there is nothing selected, it means that both anchor index and caret index is set to same value.

To set value of anchor or caret, use Document.SetSelection method.

# See Also

Document Class
Document..::..Document Members
Sgry.Azuki Namespace
Document.AnchorIndex Property
Document.SetSelection Method