I have found that line below fails using ChartEditorPanel so I have added it (TA05015736) to the defect list to be fixed ASAP.
Code: Select all
axChartEditorPanel1.Editor.ShowPages.Aspect = false;
So the best I could get for now was using a CharEditor component and this code:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
axTChart1.AddSeries(TeeChart.ESeriesClass.scLine);
axTChart1.Series(0).FillSampleValues();
axTChart1.AddSeries(TeeChart.ESeriesClass.scLine);
axTChart1.Series(1).FillSampleValues();
axTChart1.Series(0).ShowInEditor = false;
axChartEditorPanel1.ChartLink = axTChart1.ChartLink;
}
private void button1_Click(object sender, EventArgs e)
{
axTeeEditor1.ChartLink = axTChart1.ChartLink;
axTeeEditor1.ShowPages.Axis = false;
axTeeEditor1.ShowPages.Aspect = false;
axTeeEditor1.ShowPages.ExportDialog = false;
axTeeEditor1.ShowPages.ExportNative = false;
axTeeEditor1.ShowPages.General = false;
axTeeEditor1.ShowPages.Legend = false;
axTeeEditor1.ShowPages.Main = false;
axTeeEditor1.ShowPages.OpenGL = false;
axTeeEditor1.ShowPages.Paging = false;
axTeeEditor1.ShowPages.Panel = false;
axTeeEditor1.ShowPages.PrintPreview = false;
axTeeEditor1.ShowPages.SeriesData = false;
axTeeEditor1.ShowPages.SeriesMarks = false;
axTeeEditor1.ShowPages.Themes = false;
axTeeEditor1.ShowPages.Titles = false;
axTeeEditor1.ShowPages.Tools = false;
axTeeEditor1.ShowPages.Walls = false;
axTeeEditor1.ShowEditor();
}