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


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

    Parameters

    lineIndex
    The zero-based index of the line to retrieve the initial character index for.

    Return Value

    The zero-based index for the first character in the specified line.
    Exceptions
    ExceptionDescription
    If lineIndex is less than 0 or is greater than or equals to line count.
    See Also