TextEdit.GetLineFromCharIndex(Int32) Method
In This Article
Retrieves the index of the displayed line that contains the specified character.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The zero-based index of the target character. |
#Returns
Type | Description |
---|---|
Int32 | The zero-based number of the displayed line in which the character index is located. |
#Remarks
If the character index specified in the index parameter is higher than the available number of lines contained within the control, the last line number is returned.
See Also