GetCharacterIndexFromLineIndex Method (WPFTextBox)

Class

WPFTextBox.

Action

Returns the zero-based character index for the first character in the specified line.

Syntax

C#
characterIndexFromLineIndex = textBox.GetCharacterIndexFromLineIndex(lineIndex)
VB
characterIndexFromLineIndex = textBox.GetCharacterIndexFromLineIndex(lineIndex)
Variable Description
characterIndexFromLineIndex Integer.
lineIndex The zero-based index of the line to retrieve the initial character index for. Integer.