Property Strings
Strings
Represents Lines
property in the form of array of strings.
public string[] Strings { get; set; }
Property Value
- string[]
Examples
Here is how to use a Strings in the C# code:
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var textEditor = new Alternet.Editor.Wpf.TextEditor();
textEditor.Strings = new string[] { "first string", "second string", "third string" };
}
}
Here is how to use a Strings 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()
textEditor.Strings = New String() {"first string", "second string", "third string"}
End Sub
End Class
Remarks
Each item in the list represents a text line displayed by the TextEditor control.