Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / LineCount Property


In This Topic
    LineCount Property
    In This Topic
    Gets the total number of lines in the text box.
    Syntax
    'Declaration
     
    Public ReadOnly Property LineCount As Integer
    'Usage
     
    Dim instance As GcTextBox
    Dim value As Integer
     
    value = instance.LineCount
    public int LineCount {get;}

    Property Value

    The total number of lines in the text box, or –1 if layout information is not available.
    Remarks
    If text wrapping is enabled, changing the width of the text box may change this value. The value returned is the total number of lines in the text box, regardless of how many are currently visible.
    See Also