Table of Contents

Method GetRange

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetRange(long, long)

Returns the string containing the text starting in the positions from and up to to in the control.

string GetRange(long from, long to)

Parameters

from long

The first position.

to long

The last position.

Returns

string

string containing the text from the first to the last position.

Remarks

The positions must have been returned by another control method. Please note that the positions in a multiline text control do not correspond to the indices in the string returned by Value because of the different new line representations(CR or CR LF). This method should be used to obtain the correct results instead of extracting parts of the entire value. It may also be more efficient, especially if the control contains a lot of data.