Property Transparent
Transparent
Gets or sets a boolean value that indicates whether SyntaxEdit control should draw its background.
public virtual bool Transparent { get; set; }
Property Value
Examples
Here is how to use a Transparent 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.BackgroundImage = System.Drawing.Image.FromFile("image.png");
syntaxEdit1.Transparent = true;
}
}
Here is how to use a Transparent 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.BackgroundImage = System.Drawing.Image.FromFile("image.png")
syntaxEdit1.Transparent = True
End Sub
End Class
Remarks
Use Transparent alongside with BackgroundImage property to display a background image, such as a watermark, underneath the text.