Nevron .NET Vision
Nevron.Chart Namespace / NLegendData Class / ExpandMode Property
Example


In This Topic
    ExpandMode Property
    In This Topic
    The expand strategy of the legend.
    Syntax
    'Declaration
     
    
    <System.Xml.Serialization.XmlAttributeAttribute()>
    <System.ComponentModel.CategoryAttribute("Layout")>
    <System.ComponentModel.DescriptionAttribute("The expand strategy of the legend.")>
    Public Property ExpandMode As LegendExpandMode
    'Usage
     
    
    Dim instance As NLegendData
    Dim value As LegendExpandMode
     
    instance.ExpandMode = value
     
    value = instance.ExpandMode
    [System.Xml.Serialization.XmlAttribute()]
    [System.ComponentModel.Category("Layout")]
    [System.ComponentModel.Description("The expand strategy of the legend.")]
    public LegendExpandMode ExpandMode {get; set;}
    Remarks
    When you add new items to the NLegendData 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 = ExpandMode.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