MindFusion.Charting Programmer's Guide

Chart.LegendPen Property

See Also
 





Gets or sets the pen for the legend's bounding rectangle.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public Pen LegendPen { get; set; }

Visual Basic  Copy Code

Public Property LegendPen As Pen

 Property Value

An object of type MindFusion.Drawing.Pen property.

 Remarks

Legends can be drawn with an outlining. When the legend's bounding rectangle is drawn the pen is set with LegendPen. When the property is set to null, no legend's bounding rectangle is drawn.

The LegendPen is also used for drawing the legend grid. Legend grid is drawn when the LegendGridType property is not GridType.None. The columns of the legend labels can be set with LegendColumns.

Default value for the LegendPen property is a black pen, width 1.

 See Also