Gets or sets the brush used for painting the diagram background.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public Brush BackBrush { get; set; } |
Visual Basic Copy Code |
---|
Public Property BackBrush As Brush |
An instance of a MindFusion.Drawing.Brush-derived class. The default is a solid brush initialized with Color.FromArgb(170, 170, 200).
This property enables more spectacular background painting with effects such as gradients, textures and color patterns.
The following sample paints the diagram background with a gradient brush:
C# Copy Code |
---|
private void Form1_Load(object sender, System.EventArgs e) |
Visual Basic Copy Code |
---|
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load |
Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
Brush and Pen Classes
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |