Skip to main content
All docs
V23.2

TextEdit.GetLineFromCharIndex(Int32) Method

Retrieves the index of the displayed line that contains the specified character.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual int GetLineFromCharIndex(
    int index
)

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