Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / GetLineText Method
The zero-based line index for which to retrieve the currently displayed text.


In This Topic
    GetLineText Method
    In This Topic
    Returns the text that is currently displayed on the specified line.
    Syntax
    'Declaration
     
    Public Function GetLineText( _
       ByVal lineIndex As Integer _
    ) As String
    'Usage
     
    Dim instance As GcTextBox
    Dim lineIndex As Integer
    Dim value As String
     
    value = instance.GetLineText(lineIndex)
    public string GetLineText( 
       int lineIndex
    )

    Parameters

    lineIndex
    The zero-based line index for which to retrieve the currently displayed text.

    Return Value

    A string containing a copy of the text currently visible on the specified line.
    Exceptions
    ExceptionDescription
    If lineIndex is less than 0 or is greater than or equals to line count.
    See Also