Spread Windows Forms 15.0
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBox Class / GetFirstCharIndexFromLine Method
The line number for which to retrieve the first character index


In This Topic
    GetFirstCharIndexFromLine Method
    In This Topic
    Retrieves the index of the first character of a given line.
    Syntax
    'Declaration
     
    
    Public Function GetFirstCharIndexFromLine( _
       ByVal lineNumber As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As GcTextBox
    Dim lineNumber As Integer
    Dim value As Integer
     
    value = instance.GetFirstCharIndexFromLine(lineNumber)
    public int GetFirstCharIndexFromLine( 
       int lineNumber
    )

    Parameters

    lineNumber
    The line number for which to retrieve the first character index

    Return Value

    The zero-based character index in the specified line
    Exceptions
    ExceptionDescription
    Thrown when the parameter is less than zero.
    Remarks
    If the parameter is equal to or bigger than the count of this control's GetLineCount method, this method returns -1.
    See Also