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

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


int[] GetRectSelectRanges(
	Rectangle selRect
Visual Basic
Function GetRectSelectRanges ( _
	selRect As Rectangle _
) As Integer()


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

Return Value

Array of indexes (1st begin, 1st end, 2nd begin, 2nd end, ...)


(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