Property Lines
Lines
Represents object that implements ITextStrings
interface containing collection of strings determining control's content.
[Browsable(false)]
public virtual ITextStrings Lines { get; set; }
Property Value
Examples
Here is how to use a Lines in the C# code:
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var textEditor = new Alternet.Editor.Wpf.TextEditor();
for (int i = 0; i < 100; i++)
{
textEditor.Lines.Add(string.Format("Line No: {0}", i));
}
}
}
Here is how to use a Lines in the Visual Basic code:
Partial Public Class MainWindow
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
For i As Integer = 0 To 100 - 1
textEditor.Lines.Add(String.Format("Line No: {0}", i))
Next
End Sub
End Class
Remarks
Each item in the list represents a text line displayed by the TextEditor control.
This collection is altered as the user types the text.