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

C#
Visual Basic

Azuki 1.7 Documentation
IUserInterface..::..SetSelection Method
IUserInterface Interface See Also Send Feedback

Sets selection range and update the desired column.

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

# Syntax

C#
    void SetSelection(
    	int anchor,
    	int caret
    )

Visual Basic
    Sub SetSelection (
    	anchor As Integer,
    	caret As Integer
    )

#### Parameters

anchor
  Type: System..::..Int32
  the position where the selection begins

caret
  Type: System..::..Int32
  the position where the caret is

# Remarks

This method sets the selection range and also updates the desired column.

Normally the caret tries to keep its x-coordinate on moving line to line unless user explicitly changes x-coordinate of it. The term 'Desired Column' means this x-coordinate which the caret tries to stick close to.

# See Also

IUserInterface Interface
IUserInterface..::..IUserInterface Members
Sgry.Azuki Namespace