Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / GetLineIndexFromCharacterIndex Method
The zero-based character index for which to retrieve the associated line index.


In This Topic
    GetLineIndexFromCharacterIndex Method
    In This Topic
    Returns the zero-based line index for the line that contains the specified character index.
    Syntax
    'Declaration
     
    Public Function GetLineIndexFromCharacterIndex( _
       ByVal charIndex As Integer _
    ) As Integer
    'Usage
     
    Dim instance As GcTextBox
    Dim charIndex As Integer
    Dim value As Integer
     
    value = instance.GetLineIndexFromCharacterIndex(charIndex)
    public int GetLineIndexFromCharacterIndex( 
       int charIndex
    )

    Parameters

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

    Return Value

    The zero-based index for the line that contains the specified character index.
    Exceptions
    ExceptionDescription
    charIndex is negative or greater than the length of the content.
    See Also