TextEdit.GetFirstCharIndexFromLine(Int32) Method
In This Article
Retrieves the index of the first character of a given line.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
line |
Int32 | The zero-based index of the target displayed line. |
#Returns
Type | Description |
---|---|
Int32 | The zero-based index of the first character in the specified line. |
#Remarks
If the lineNumber parameter does not refer to an existing line, the GetFirstCharIndexFromLine method returns -1.
The GetFirstCharIndexFromLine method returns the first character index of a specified displayed line. The number of displayed lines can be greater than the number of logical lines due to word wrap.
See Also