Xceed Chart for WinForms v4.4 Documentation
ColCount Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > LegendData Class : ColCount Property
The maximum number of columns when ExpandMode is LegendExpandMode.ColsFixed.
Syntax
'Declaration
 
<CategoryAttribute("General")>

<DescriptionAttribute("The maximum number of columns when ExpandMode is LegendExpandMode.ColsFixed.")>

<DefaultValueAttribute()>

Public Property ColCount As Integer
'Usage
 
Dim instance As LegendData

Dim value As Integer

 

instance.ColCount = value

 

value = instance.ColCount
[Category("General")]

[Description("The maximum number of columns when ExpandMode is LegendExpandMode.ColsFixed.")]

[DefaultValue()]

public int ColCount {get; set;}
Remarks
When the number of data points exceeds the ColCount the legend will have ColCount columns and (LegendItemCount / ColCount + (LegendItemCount % ColCount != 0)) rows.
Example
The following example instructs the legend to expand to a limited number of columns.
legend.Data.ExpandMode = LegendExpandMode.ColsFixed

legend.Data.ColCount = 4
legend.Data.ExpandMode = LegendExpandMode.ColsFixed;

legend.Data.ColCount = 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