ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/Contour_Levels.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Contour_Levels : Samples.BaseForm
{
private Steema.TeeChart.Styles.Contour contourSeries1;
private System.Windows.Forms.CheckBox checkBox1;
private System.ComponentModel.IContainer components = null;
private void AddCustomLevels()
{
this.contourSeries1.NumLevels = 10;
// TODO : this.contourSeries1.CreateAutoLevels(); still private ?
(this.contourSeries1.Levels[0] as Steema.TeeChart.Styles.ContourLevel).UpToValue = -1;
(this.contourSeries1.Levels[1] as Steema.TeeChart.Styles.ContourLevel).UpToValue = -0.8;
(this.contourSeries1.Levels[2] as Steema.TeeChart.Styles.ContourLevel).UpToValue = -0.6;
(this.contourSeries1.Levels[3] as Steema.TeeChart.Styles.ContourLevel).UpToValue = -0.4;
(this.contourSeries1.Levels[4] as Steema.TeeChart.Styles.ContourLevel).UpToValue = -0.2;
(this.contourSeries1.Levels[5] as Steema.TeeChart.Styles.ContourLevel).UpToValue = 0.0;
(this.contourSeries1.Levels[6] as Steema.TeeChart.Styles.ContourLevel).UpToValue = 0.2;
(this.contourSeries1.Levels[7] as Steema.TeeChart.Styles.ContourLevel).UpToValue = 0.4;
(this.contourSeries1.Levels[8] as Steema.TeeChart.Styles.ContourLevel).UpToValue = 0.6;
(this.contourSeries1.Levels[9] as Steema.TeeChart.Styles.ContourLevel).UpToValue = 0.8;
}
public Contour_Levels()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
this.contourSeries1.FillSampleValues(20);
this.contourSeries1.ColorEach = false;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。