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

C#
Visual Basic

Azuki 1.7 Documentation
IView..::..GetRectSelectRanges Method
IView Interface See Also Send Feedback

Calculates and returns text ranges that will be selected by specified rectangle.

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

# Syntax

C#
    int[] GetRectSelectRanges(
    	Rectangle selRect
    )

Visual Basic
    Function GetRectSelectRanges (
    	selRect As Rectangle
    ) As Integer()

#### Parameters

selRect
  Type: System.Drawing..::..Rectangle
  Rectangle to be used to specify selection target.

#### Return Value

Type: array<Int32>[]()[][]
Array of indexes (1st begin, 1st end, 2nd begin, 2nd end, ...)

# Remarks

(This method is basically for internal use. I do not recommend to use this from outside of Azuki.)

This method calculates text ranges which will be selected by given rectangle. Because mapping of character indexes and graphical position (layout) are executed by view implementations, the result of this method will be changed according to the interface implementation.

Return value of this method is an array of text indexes that is consisted with beginning index of first text range (row), ending index of first text range, beginning index of second text range, ending index of second text range and so on.

# See Also

IView Interface
IView..::..IView Members
Sgry.Azuki Namespace