Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / LegendData Class / RowCount Property
Example


In This Topic
    RowCount Property
    In This Topic
    The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.
    Syntax
    'Declaration
     
    <CategoryAttribute("General")>
    <DescriptionAttribute("The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.")>
    <DefaultValueAttribute(10)>
    Public Property RowCount As Integer
    'Usage
     
    Dim instance As LegendData
    Dim value As Integer
     
    instance.RowCount = value
     
    value = instance.RowCount
    [Category("General")]
    [Description("The maximum number of rows when ExpandMode is LegendExpandMode.RowsFixed.")]
    [DefaultValue(10)]
    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