Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Legend Class / Legend Constructor
Example


In This Topic
    Legend Constructor
    In This Topic
    Creates a new legend.
    Syntax
    'Declaration
     
    Public Function New()
    'Usage
     
    Dim instance As New Legend()
    public Legend()
    Remarks
    You must add the legend object to the legends collection before it can be displayed by the chart.
    Example
    The following example adds a new legend.
    Legend legend = new Chart();
    ChartControl.Legends.Add(legend);
    Legend legend = new Chart();
    ChartControl.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