• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    Strings Property

    Strings

    Represents Lines property in the form of array of strings.

    Declaration
    public string[] Strings { get; set; }
    Property Value
    Type Description
    String[]
    Remarks

    Each item in the list represents a text line displayed by the TextEditor control.

    Strings is an array representation of the Lines property.

    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
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF