Xceed Chart for WinForms v4.4 Documentation
RowCount Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > LegendData Class : RowCount Property
The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.
Syntax
'Declaration
 
<DescriptionAttribute("The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.")>
<DefaultValueAttribute()>
<CategoryAttribute("General")>
Public Property RowCount As Integer
'Usage
 
Dim instance As LegendData
Dim value As Integer
 
instance.RowCount = value
 
value = instance.RowCount
[Description("The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.")]
[DefaultValue()]
[Category("General")]
public int RowCount {get; set;}
Remarks
When the number of data points exceeds the RowCount the legend will have RowCount rows and (LegendItemCount / RowCount + (LegendItemCount % RowCount != 0)) columns.
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