TCnTextBoxBase.Select(Integer,Integer) Method

Selects a range of text in the text box.

Namespace: CNClrLib.Control.TextBoxBase
public
 procedure Select(Start: Integer; Length: Integer);

Parameters

Start
Type: Integer

The position of the first character in the current text selection within the text box.

Length
Type: Integer

The number of characters to select.

If you want to set the start position to the first character in the control's text, set the start parameter to 0. You can use this method to select a substring of text, such as when searching through the text of the control and replacing information.