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

    Show / Hide Table of Contents

    WhiteSpace Property

    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.

    Declaration
    [TypeConverter(typeof(ExpandableObjectConverter))]
    public virtual IWhiteSpace WhiteSpace { get; set; }
    Property Value
    Type Description
    IWhiteSpace
    Implements
    ISyntaxEdit.WhiteSpace
    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.

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