Table of Contents

Property Lines

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

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

ITextStrings

Examples

Here is how to use a Lines 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);
        for (int i = 0; i < 100; i++)
        {
            syntaxEdit1.Lines.Add(string.Format("Line No: {0}", i));
        }
    }
}

Here is how to use a Lines 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)

        For i As Integer = 0 To 100 - 1
            syntaxEdit1.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 SyntaxEdit control.

This collection is altered as the user types the text.