TextEdit.Select(Int32, Int32) Method
Selects the specified number of characters in the text box starting from the point specified.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
start | Int32 | An integer value specifying the selection’s start point in the text box. |
length | Int32 | An integer value specifying the number of characters to select in the text box. |
#Remarks
This method enables you to select the specified amount of text starting from the point specified within the control. This can be useful when it is necessary to select only part of the specified editor’s content when an editor receives focus.
To select all text within the text box, use the TextEdit.SelectAll method.
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Select(Int32, Int32) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.