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


In This Topic
    GetFirstCharIndexFromLine Method (GcTextBoxEditingControl)
    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 GcTextBoxEditingControl
    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
    Remarks
    If the parameter is equal to or bigger than the count of this control's GetLineCount method, this method returns -1.
    See Also