Gets or sets the width of the legend's rectangle. Namespace: MindFusion.Charting
|
C#
![]() |
---|
public float LegendWidth { get; set; } |
Visual Basic
![]() |
---|
Public Property LegendWidth As Single |
A float value. Default is float.NaN.
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.