Nevron .NET Vision
Nevron.Chart Namespace / NAreaSeries Class / MultiAreaMode Property
Example


In This Topic
    MultiAreaMode Property (NAreaSeries)
    In This Topic
    Controls the mode of the area series.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Options")>
    <System.ComponentModel.DescriptionAttribute("Controls the mode of the area series.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Property MultiAreaMode As MultiAreaMode
    'Usage
     
    
    Dim instance As NAreaSeries
    Dim value As MultiAreaMode
     
    instance.MultiAreaMode = value
     
    value = instance.MultiAreaMode
    [System.ComponentModel.Category("Options")]
    [System.ComponentModel.Description("Controls the mode of the area series.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public MultiAreaMode MultiAreaMode {get; set;}
    Remarks
    This property determines the way in which the area series interacts with the other created area series. By default set to MultiAreaMode.Series
    Example
    The following code will create a stack area chart.
    Dim area1 As NAreaSeries =  Chart.Series.Add(SeriesType.Area) 
    Dim area2 As NAreaSeries =  Chart.Series.Add(SeriesType.Area) 
    area1.Add(12)
    area1.Add(24)
    area1.Add(42)
    area2.Add(24)
    area2.Add(34)
    area2.Add(16)
    area2.MultiAreaMode = MultiAreaMode.Stacked
    NAreaSeries area1 = Chart.Series.Add(SeriesType.Area);
    NAreaSeries area2 = Chart.Series.Add(SeriesType.Area);
    area1.Add(12);
    area1.Add(24);
    area1.Add(42);
    area2.Add(24);
    area2.Add(34);
    area2.Add(16);
    area2.MultiAreaMode = MultiAreaMode.Stacked;
    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