ASP.NET Pack Programmer's Guide
DiagramItem.setBrush Method
See Also
 





Sets an object that specifies how to paint the interior of the DiagramItem.

Namespace: MindFusion.Diagramming
Package: DiagramItem.js

 Syntax

JavaScript  Copy Code

function setBrush (value)

 Parameters

value
A Brush object specifying the fill of the item.

 Remarks

This property can be set to a color string to specify solid fill:

JavaScript  Copy Code
node.setBrush("white");

It also accepts objects that specify the type of brush and additional information:

JavaScript  Copy Code

node1.setBrush(
    { type: 'SolidBrush', color: '#e0e9e9' });
node2.setBrush(
    { type: 'LinearGradientBrush', color1: '#e0e9e9', color2: '#616a7f', angle: 90 });

 See Also

DiagramItem Members
DiagramItem Class
MindFusion.Diagramming Namespace
Customizing Node Appearance