ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Axis/Axis_Custom.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Axis_Custom : Steema.TeeChart.Samples.BaseForm
{
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
private Steema.TeeChart.Axis axis1;
private Steema.TeeChart.Axis axis2;
private Steema.TeeChart.Axis axis3;
private Steema.TeeChart.Axis axis4;
private Steema.TeeChart.Styles.Line line1;
private Steema.TeeChart.Styles.Line line2;
private Steema.TeeChart.Styles.Line line3;
private System.ComponentModel.IContainer components = null;
public Axis_Custom()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
line1.CustomHorizAxis = axis2;
line2.CustomVertAxis = axis1;
line3.CustomHorizAxis = axis3;
line3.CustomVertAxis = axis4;
//Use of elected Partner Axes to limit GridLine zone
tChart1.Axes.Bottom.UsePartnerAxis = true;
tChart1.Axes.Bottom.PartnerAxis = tChart1.Axes.Custom[0];
tChart1.Axes.Custom[0].UsePartnerAxis = true;
tChart1.Axes.Custom[0].PartnerAxis = tChart1.Axes.Bottom;
tChart1.Axes.Custom[1].UsePartnerAxis = true;
tChart1.Axes.Custom[1].PartnerAxis = tChart1.Axes.Left;
tChart1.Axes.Custom[3].UsePartnerAxis = true;
tChart1.Axes.Custom[3].PartnerAxis = tChart1.Axes.Custom[2];
tChart1.Axes.Custom[2].UsePartnerAxis = true;
tChart1.Axes.Custom[2].PartnerAxis = tChart1.Axes.Custom[3];
foreach (TeeChart.Styles.Series s in tChart1.Series)
s.FillSampleValues(20);
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。