Xceed Chart for WinForms v4.4 Documentation
Header Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Legend Class : Header Property
The header of the legend.
Syntax
'Declaration
 
<DescriptionAttribute("The header of the legend")>

<CategoryAttribute("Content")>

Public Property Header As LegendText
'Usage
 
Dim instance As Legend

Dim value As LegendText

 

instance.Header = value

 

value = instance.Header
[Description("The header of the legend")]

[Category("Content")]

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

Reference

Legend Class
Legend Members