XY Chart NET 3 Control Reference
Title Property

Use this property to return/set a value that determines the chart's title characteristics.  Title uses the Title Class set of properties for its characteristics.

Syntax
[Visual Basic]
Property Title() As C_Title
[C#]
XYChartNet.XYChartNETCtl.C_Title XYChartNETCtl.Title
[C++]
property XYChartNet::XYChartNETCtl::C_Title ^ XYChartNet::XYChartNETCtl::Title
       
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Dim sValue As String
Dim myFont As New Font("Arial", 16, FontStyle.Italic Or FontStyle.Underline)

sValue = XYChartNETCtl1.Title.Label      'Return the current title string

XYChartNETCtl1.Title.Label = "Sample 1"  'Set the title string
XYChartNETCtl1.Title.Color = Color.Blue  'Set the title color to Blue
XYChartNETCtl1.Title.Font = myFont       'Set the title font

XYChartNETCtl1.Refresh              'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Font   myTitleFont = new Font("Arial", 16, FontStyle.Bold | FontStyle.Italic);
String sValue;

sValue = XYChartNETCtl1.Title.Label;      //Return the current title string

XYChartNETCtl1.Title.Label = "Sample 1";  //Set the title string
XYChartNETCtl1.Title.Font = myTitleFont;  //Set the title font
XYChartNETCtl1.Title.Color = Color.Blue;  //Set the title color to Blue

XYChartNETCtl1.Refresh();  //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

int                     myFontStyle = (int)Drawing::FontStyle::Bold | (int)Drawing::FontStyle::Italic;
System::Drawing::Font*  myTitleFont = new Drawing::Font("Arial", 16, (Drawing::FontStyle)myFontStyle);
String*                 sValue;

sValue = XYChartNETCtl1->Title->Label;       //Return the current title string

XYChartNETCtl1->Title->Label = "Sample 1";   //Set the title string
XYChartNETCtl1->Title->Font = myTitleFont;   //Set the title font
XYChartNETCtl1->Title->Color = Color::Blue;  //Set the title color to Blue
               
XYChartNETCtl1->Refresh();  //Refresh required to update chart with changes made
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.