Gets or sets the pen used to paint the frame of the item.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public Pen Pen { get; set; } |
Visual Basic Copy Code |
---|
Public Property Pen As Pen |
An instance of the MindFusion.Drawing.Pen class. The default value is null.
The property refers to a pen, with which the item frame is painted. When applied to links, the property specifies how their segments are painted.
When set to null, the pen object used to draw the item borders is derived from the item's Style, or from the diagram's current Theme.
The following example demonstrates how to create a pen with a linear gradient and assign it to the first node of a diagram:
C# Copy Code |
---|
MindFusion.Drawing.Brush penBrush = new MindFusion.Drawing.LinearGradientBrush( |
Visual Basic Copy Code |
---|
Dim penBrush As New MindFusion.Drawing.LinearGradientBrush( _ |