Back to Devexpress

TextEdit.GetLineIndexFromCharacterIndex(Int32) Method

wpf-devexpress-dot-xpf-dot-editors-dot-textedit-dot-getlineindexfromcharacterindex-x28-system-dot-int32-x29.md

latest1.5 KB
Original Source

TextEdit.GetLineIndexFromCharacterIndex(Int32) Method

Returns the index of the line that contains the character with the specified index.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public int GetLineIndexFromCharacterIndex(
    int charIndex
)
vb
Public Function GetLineIndexFromCharacterIndex(
    charIndex As Integer
) As Integer

Parameters

NameTypeDescription
charIndexInt32

The zero-based character index.

|

Returns

TypeDescription
Int32

The zero-based index of the line that contains the character with the specified index.

|

See Also

CaretIndex

GetCharacterIndexFromLineIndex(Int32)

TextEdit Class

TextEdit Members

DevExpress.Xpf.Editors Namespace