ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Components/ChartLayout.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Steema.TeeChart.Styles;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
  public class ChartLayout : BaseNoChart
  {
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.CheckBox checkBox1;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.SplitContainer splitContainer2;
    private System.Windows.Forms.Button button2;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.HScrollBar hScrollBar3;
    private System.Windows.Forms.HScrollBar hScrollBar2;
    private System.Windows.Forms.CheckedListBox checkedListBox1;
    private System.Windows.Forms.HScrollBar hScrollBar1;
    private SaveFileDialog saveFileDialog1;
    private Steema.TeeChart.Components.ChartLayout l;

    public ChartLayout() : base()
    {
      InitializeComponent();

      l = new Steema.TeeChart.Components.ChartLayout();
      l.Dock = DockStyle.Fill;
      splitContainer2.Panel2.Controls.Add(l);

      for (int t = 0; t < 9; t++)
      {
        l.Add("Chart " + t.ToString()).Series.Add(typeof(FastLine)).FillSampleValues();
      }

      hScrollBar2.Value = l.ChartWidth;
      hScrollBar3.Value = l.ChartHeight;

      for (int t = 0; t < l.Charts.Count; t++)
      {
        checkedListBox1.Items.Add(l.Charts[t].Header.Text, true);
      }
    }

    private void checkBox1_CheckedChanged(object sender, EventArgs e)
    {
      l.View3D = checkBox1.Checked;
    }

    private void hScrollBar1_Scroll(object sender, ScrollEventArgs e)
    {
      l.Columns = hScrollBar1.Value;
    }

    private void button1_Click(object sender, EventArgs e)
    {
      saveFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
      saveFileDialog1.ShowDialog();

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。