ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/Surface_XYZFloat.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Surface_XYZFloat : Samples.BaseForm
{
private Steema.TeeChart.Styles.Surface surfaceSeries1;
private Steema.TeeChart.Tools.GridBand gridBand1;
private System.ComponentModel.IContainer components = null;
public Surface_XYZFloat()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
this.surfaceSeries1.IrregularGrid = true; // <-- IMPORTANT ! means X and Z are float
for (int x=1; x<=10;x++)
for (int z=1; z<=10; z++)
this.surfaceSeries1.Add(x/10.0,Math.Sqrt(x*z),z/5.0);
// set palette colors to "10, strong" ...
this.surfaceSeries1.UseColorRange = false;
this.surfaceSeries1.UsePalette = true;
this.surfaceSeries1.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Strong;
this.surfaceSeries1.PaletteSteps = 10;
// adjust some axes properties...
this.tChart1.Axes.Depth.Visible = true;
this.tChart1.Axes.Depth.Labels.ValueFormat = "0.#";
this.tChart1.Axes.Depth.Increment = 0.2;
this.tChart1.Axes.Bottom.Labels.ValueFormat = "0.#";
this.tChart1.Axes.Bottom.Increment = 0.1;
// visual properties...
this.tChart1.Aspect.Chart3DPercent = 100;
this.tChart1.Aspect.Orthogonal = false;
this.tChart1.Aspect.Perspective = 50;
this.tChart1.Aspect.Rotation = 327;
this.tChart1.Aspect.Elevation = 352;
this.tChart1.Aspect.Zoom = 70;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。