TextBox.GetLineIndexFromCharacterIndex Method (Int32)

 

Returns the zero-based line index for the line that contains the specified character index.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Function GetLineIndexFromCharacterIndex (
	charIndex As Integer
) As Integer

Parameters

charIndex
Type: System.Int32

The zero-based character index for which to retrieve the associated line index.

Return Value

Type: System.Int32

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

.NET Framework
Available since 3.0
Return to top
Show: