MindFusion.Charting Programmer's Guide

Chart.LegendWidth Property

See Also
 





Gets or sets the width of the legend's rectangle.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public float LegendWidth { get; set; }

Visual Basic  Copy Code

Public Property LegendWidth As Single

 Property Value

A float value. Default is float.NaN.

 Remarks

When LegendWidth is set to float.NaN the control calculates automatically the width of the legend so that all LegendLabels could fit in without being broken into several lines.

When the LegendWidth is custom-set, the legend value is considered to include the LegendBorderMargin, the space for the color indicators before each legend label and and so on. If space is not enough, LegendLabels are broken into several lines. Words are kept whole if LegendWordWrap is set to true.

 See Also