ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Tools/Tool_LegendPalette.cs

(开头部分) 2KB

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

using System;
#if VS2005
using System.Collections.Generic;
#endif
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
    public class Tool_LegendPalette : Steema.TeeChart.Samples.BaseForm
    {
        public Tool_LegendPalette()
        {
            InitializeComponent();
            AddSurfacePoints();
            surface1.UseColorRange = true;
            surface1.UsePalette = false;
            legendPalette1.Pen.Visible = false;
            legendPalette1.Transparent = true;
        }

        private void AddSurfacePoints()
        {
            int NumX = 30;
            int NumZ = 30;
            surface1.NumXValues = NumX;
            surface1.NumZValues =  NumZ;
            for (int x=1; x<=NumX; x++)
                for (int z=1; z<=NumZ; z++)
                    surface1.Add(x,Math.Cos(0.14*x)*Math.Cos(0.25*z)+
                          0.01*(x-(NumX/2))*(z-(NumZ/2)) +
                          13.0*Math.Exp(-0.06*(Math.Pow(x-(NumX/2),2)+Math.Pow(z-(NumZ /2),2)))+
                          6*Math.Exp(-0.03*(Math.Pow(x-(NumX /3),2)+Math.Pow(z-3*(NumZ /5),2)))-1,
                          z);
        }

        private Steema.TeeChart.Styles.Surface surface1;
        private Steema.TeeChart.Tools.LegendPalette legendPalette1;
        private CheckBox checkBox1;
        private CheckBox checkBox2;
        private Label label1;
        private ComboBox comboBox1;
        private CheckBox checkBox3;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();

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

AI 解读 AI

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

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