TextBox.GetLineIndexFromCharacterIndex(Int32) Method

Definition

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

public:
 int GetLineIndexFromCharacterIndex(int charIndex);
public int GetLineIndexFromCharacterIndex (int charIndex);
member this.GetLineIndexFromCharacterIndex : int -> int
Public Function GetLineIndexFromCharacterIndex (charIndex As Integer) As Integer

Parameters

charIndex
Int32

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

Returns

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

Applies to

See also