Gets or sets the brush used to fill the interior of this item.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public Brush Brush { get; set; } |
Visual Basic
![]() |
---|
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#
![]() |
---|
diagram.Nodes[0].Brush = new MindFusion.Drawing.LinearGradientBrush( |
Visual Basic
![]() |
---|
Diagram.Nodes(0).Brush = New MindFusion.Drawing.LinearGradientBrush( _ |
MindFusion.Diagramming Developer's Guide | © 2025 MindFusion |