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


In This Topic
    Legend Property (SeriesBase)
    In This Topic
    Gives you access to an instance of the SeriesLegend class controlling the representation of the series in the legend.
    Syntax
    'Declaration
     
    <CategoryAttribute("Attributes")>
    <DescriptionAttribute("Controls the representation of the series in the legend.")>
    Public ReadOnly Property Legend As SeriesLegend
    'Usage
     
    Dim instance As SeriesBase
    Dim value As SeriesLegend
     
    value = instance.Legend
    [Category("Attributes")]
    [Description("Controls the representation of the series in the legend.")]
    public SeriesLegend Legend {get;}
    Example
    The following code shows all series data points in the legend.
    bar.Legend.Mode = SeriesLegendMode.DataPoints
    bar.Legend.Mode = SeriesLegendMode.DataPoints;
    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