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

(开头部分) 1KB

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

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
	public class Tools_DrawLineDragged : Samples.BaseForm
	{
		private Steema.TeeChart.Styles.Line lineSeries1;
		private Steema.TeeChart.Tools.DrawLine drawLine1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label3;
		private System.ComponentModel.IContainer components = null;

		public Tools_DrawLineDragged()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

			this.lineSeries1.FillSampleValues(30);

			/* set the "X" line positions (start and end position) */
			Steema.TeeChart.Tools.DrawLineItem I = new Steema.TeeChart.Tools.DrawLineItem(drawLine1);
      /* set the "Y" line positions (start and end position) */
			double tmp = lineSeries1.YValues.Range/5.0; 			
      I.StartPos = new Steema.TeeChart.Drawing.PointDouble(5, lineSeries1.YValues.Maximum - tmp);
      I.EndPos = new Steema.TeeChart.Drawing.PointDouble(15, lineSeries1.YValues.Minimum + tmp);

			drawLine1.Pen.Color = Color.Blue;
			drawLine1.Pen.Width = 2;
		}

		/// <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.
		/// </summary>
		private void InitializeComponent()
		{
			this.lineSeries1 = new Steema.TeeChart.Styles.Line();
			this.drawLine1 = new Steema.TeeChart.Tools.DrawLine();
			this.label1 = new System.Windows.Forms.Label();

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

AI 解读 AI

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

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