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

C#
Visual Basic

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

Gets index of the position where the selection starts (in char-index).

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

# Syntax

C#
    public int AnchorIndex { get; }

Visual Basic
    Public ReadOnly Property AnchorIndex As Integer
    	Get

#### Property Value

Type: Int32

# Remarks

This property gets the index of the 'selection anchor;' where the selection starts.

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.CaretIndex Property
Document.SetSelection Method