Gets the chart control associated with the chart frame. It must be of the type System.Windows.Forms.DataVisualization.Charting.Chart.

Syntax

public System.ComponentModel.Component Chart { get; }

Examples

The following snippet describes the TXTextControl.DataVisualization.ChartFrame.Chart property. Here, it is stored in a variable of the type System.ComponentModel.Component.

System.Windows.Forms.DataVisualization.Charting.Chart myChart = new System.Windows.Forms.DataVisualization.Charting.Chart();
TXTextControl.DataVisualization.ChartFrame chartFrame = new TXTextControl.DataVisualization.ChartFrame(myChart);

chartFrame.Name = "points";
chartFrame.ExportCompressionQuality = 100;
chartFrame.ExportFileName = ""; 
chartFrame.ExportFilterIndex = 0; 
chartFrame.ExportResolution = 0; 
System.Drawing.Rectangle myChartFrameBounds = chartFrame.Bounds;  
System.ComponentModel.Component ThisIsMyChart = chartFrame.Chart; // gets the chart of the frame
chartFrame.ID = 0; 
chartFrame.Alignment = 
chartFrame.InsertionMode = 
chartFrame.Moveable = true;
chartFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; 
System.Drawing.Size myFrameSize = chartFrame.Size;
chartFrame.Sizeable = true;
chartFrame.TextDistances = new int[] { -1, -1, -1, -1 }; 
int myTextPosition = chartFrame.TextPosition;

textControl1.Charts.Add(chartFrame, -1);

Limitations

Read only.