Gets or sets the brush used to fill the interior of this item.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public Brush Brush { get; set; } |
Visual Basic Copy Code |
---|
Public Property Brush As Brush |
An instance of a MindFusion.Drawing.Brush-derived class. The default value is null.
This property refers to a brush with which an item is painted. You can assign to it an instance of one of the following classes: HatchBrush, LinearGradientBrush, PathGradientBrush, SolidBrush or TextureBrush, located in the MindFusion.Drawing namespace. When applied to links, the property defines how arrowheads interior is painted.
When set to null, the brush object used to paint this item is derived from the item's Style, or from the diagram's Theme.
The following example demonstrates how to create a LinearGradientBrush and assign it to the first node of a diagram:
C# Copy Code |
---|
diagram.Nodes[0].Brush = new MindFusion.Drawing.LinearGradientBrush( |
Visual Basic Copy Code |
---|
Diagram.Nodes(0).Brush = New MindFusion.Drawing.LinearGradientBrush( _ |