ASP.NET Pack Programmer's Guide
Diagram.BackBrush Property
See Also
 





Gets or sets the brush used for painting the diagram background.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Brush BackBrush { get; set; }

Visual Basic  Copy Code

Public Property BackBrush As Brush

 Property Value

An instance of a MindFusion.Drawing.Brush-derived class. The default is a solid brush initialized with Color.FromArgb(170, 170, 200).

 Remarks

This property enables more spectacular background painting with effects such as gradients, textures and color patterns.

 Example

The following sample paints the diagram background with a gradient brush:

C#  Copy Code

private void Form1_Load(object sender, System.EventArgs e)
{
    diagram.BackBrush = new MindFusion.Drawing.LinearGradientBrush(
        Color.LightBlue, Color.LightCyan, 30);
}

Visual Basic  Copy Code

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    diagram.BackBrush = New MindFusion.Drawing.LinearGradientBrush( _
        Color.LightBlue, Color.LightCyan, 30)

End Sub

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
Brush and Pen Classes