Xceed Chart for WinForms v4.4 Documentation
ExpandMode Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > LegendData Class : ExpandMode Property
The expand strategy of the legend.
Syntax
'Declaration
 
<DescriptionAttribute("The expand strategy of the legend.")>

<CategoryAttribute("General")>

<DefaultValueAttribute()>

Public Property ExpandMode As LegendExpandMode
'Usage
 
Dim instance As LegendData

Dim value As LegendExpandMode

 

instance.ExpandMode = value

 

value = instance.ExpandMode
[Description("The expand strategy of the legend.")]

[Category("General")]

[DefaultValue()]

public LegendExpandMode ExpandMode {get; set;}
Remarks
When you add new items to the LegendData object the legend may become too long to display in the control window or image. This is why you may wish to alter the legend layout strategy or in other words the way the legend expands when new items are added.
Example
The following example instructs the legend to expand to a limited number of rows.
legend.Data.ExpandMode = LegendExpandMode.RowsFixed

legend.Data.RowCount = 4
legend.Data.ExpandMode = LegendExpandMode.RowsFixed;

legend.Data.RowCount = 4;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LegendData Class
LegendData Members