Table of Contents

Property WhiteSpace

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

WhiteSpace

Represents an object that implements IWhiteSpace interface. This object specifies appearance of white space characters, as well as End-of-line and End-of-file marks.

[TypeConverter(typeof(ExpandableObjectConverter))]
public virtual IWhiteSpace WhiteSpace { get; set; }

Property Value

IWhiteSpace

Examples

Here is how to use a WhiteSpace 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.WhiteSpace.Visible = true;
        syntaxEdit1.WhiteSpace.SymbolColor = System.Drawing.Color.Brown;
        syntaxEdit1.WhiteSpace.EolSymbol = '$';
    }
}

Here is how to use a WhiteSpace 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.WhiteSpace.Visible = True
        syntaxEdit1.WhiteSpace.SymbolColor = System.Drawing.Color.Brown
        syntaxEdit1.WhiteSpace.EolSymbol = "$"c
    End Sub
End Class

Remarks

When Visible property is set to true, SyntaxEdit control displays whitespace characters such as spaces, tabs, end-of-line, and end-of-file indicators as special symbols.