ASP.NET Pack Programmer's Guide
Diagram.setBackBrush Method
See Also
 





Sets an object used for painting the diagram background.

Namespace: MindFusion.Diagramming
Package: Diagram.js

 Syntax

JavaScript  Copy Code

function setBackBrush (value)

 Parameters

value

The object used for painting the background.

 Remarks

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

 Example

The following example demonstrates how a gradient brush is created and how a solid brush is created - from a string that identifies a predefined color or from a RGB value.

JavaScript

//create gradient brush
var gradientBrush = { type: "LinearGradientBrush", color1: "green", color2: "white", angle: 30 };

//create blue solid brush
var solidBrush = "blue";

//create gray solid brush
var solidBrush = "#COCOCO";

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
BackgroundImageUrl Property