Table of Contents

Property Strings

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

Strings

Represents Lines property in the form of array of strings.

[TypeConverter(typeof(CollectionConverter))]
public string[] Strings { get; set; }

Property Value

string[]

Examples

Here is how to use a Strings in the C# code:

public partial class Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
        syntaxEdit1.Strings = new string[] { "first string", "second string", "third string" };
    }
}

Here is how to use a Strings in the Visual Basic code:

Partial Public Class Form1
    Inherits Form

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
        syntaxEdit1.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 SyntaxEdit control.

Strings is an array representation of the Lines property.