ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/FastLine_TreatNulls.cs

(开头部分) 1KB

这里只显示每个文件的开头 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 FastLine_TreatNulls : Steema.TeeChart.Samples.BaseForm
    {

        private void FillSeries()
        {
            bool done = false;
            double y;
            for (int x = 0; x <= 100; x++)
            {
                y = (x % 2 == 0) ? 10 : 20;
                if ((x >= 30) && (x <= 70))
                {
                    if (!done) fastLine1.Add(x, 0, Color.Transparent);
                    done = true;
                }
                else fastLine1.Add(x, y);
            }
        }
        
        public FastLine_TreatNulls()
        {
            InitializeComponent();
            fastLine1.TreatNulls = Steema.TeeChart.Styles.TreatNullsStyle.DoNotPaint;
            FillSeries();
            fastLine1.GetVertAxis.SetMinMax(-10, 30);
        }

        private Steema.TeeChart.Styles.FastLine fastLine1;
        private GroupBox groupBox1;
        private RadioButton radioButton3;
        private RadioButton radioButton2;
        private RadioButton radioButton1;
        /// <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();
            }
            base.Dispose(disposing);

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

AI 解读 AI

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

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