Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / GetLineLength Method
The zero-based line index for which to return a character count.


In This Topic
    GetLineLength Method
    In This Topic
    Returns the number of characters in the specified line.
    Syntax
    'Declaration
     
    Public Function GetLineLength( _
       ByVal lineIndex As Integer _
    ) As Integer
    'Usage
     
    Dim instance As GcTextBox
    Dim lineIndex As Integer
    Dim value As Integer
     
    value = instance.GetLineLength(lineIndex)
    public int GetLineLength( 
       int lineIndex
    )

    Parameters

    lineIndex
    The zero-based line index for which to return a character count.

    Return Value

    The number of characters in the specified line.
    Exceptions
    ExceptionDescription
    If lineIndex is less than 0 or is greater than or equals to line count.
    See Also