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


In This Topic
    Header Property
    In This Topic
    The header of the legend.
    Syntax
    'Declaration
     
    <CategoryAttribute("Content")>
    <DescriptionAttribute("The header of the legend")>
    Public Property Header As LegendText
    'Usage
     
    Dim instance As Legend
    Dim value As LegendText
     
    instance.Header = value
     
    value = instance.Header
    [Category("Content")]
    [Description("The header of the legend")]
    public LegendText Header {get; set;}
    Remarks
    Returns a reference to a LegendText object representing the legend header. The header is not displayed if the Text property of the LegendText object is empty.
    Example
    The following example changes the text of the legend header.
    Dim legend As Legend = CType((NChartControl.Legends(0)), Legend)
    legend.Header.Text = "Some legend header"
    Legend legend = (Legend)(NChartControl.Legends[0]);
    legend.Header.Text = "Some legend header";
    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