Nevron .NET Vision
Nevron.Chart Namespace / NLegend Class / Mode Property
Example


In This Topic
    Mode Property (NLegend)
    In This Topic
    Controls the mode of the legend.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("Content")>
    <System.ComponentModel.DescriptionAttribute("Controls the mode of the legend")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property Mode As LegendMode
    'Usage
     
    
    Dim instance As NLegend
    Dim value As LegendMode
     
    instance.Mode = value
     
    value = instance.Mode
    [System.ComponentModel.Category("Content")]
    [System.ComponentModel.Description("Controls the mode of the legend")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public LegendMode Mode {get; set;}
    Remarks
    The integrated legend of Nevron Chart for .NET can operate in three modes - Disabled, Automatic and Manual. In disabled mode the legend is not displayed. When you set the mode to Automatic the legend data is supplied by the series of the associated charts to the legend. In this case you control the displayed legend data items though the NSeriesLegend object. In manual mode you can manually feed the legend data items.
    Example
    The following example creates a new legend, sets it in manual mode and adds a new legend data item.
    Dim legend As NLegend =  New NLegend() 
    legend.Mode = LegendMode.Manual
    NChartControl.Legends.Add(legend)
    NLegend legend = new NLegend();
    legend.Mode = LegendMode.Manual;
    NChartControl.Legends.Add(legend);
    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