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

(开头部分) 1KB

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

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

namespace Steema.TeeChart.Samples
{
	public class ColorBandDrag : Steema.TeeChart.Samples.ColorBandClicked {
		private Steema.TeeChart.ButtonPen BPStart;
		private Steema.TeeChart.ButtonPen BPEnd;
		private System.ComponentModel.IContainer components = null;

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

			BPStart.Pen = colorBand1.StartLinePen;
			BPEnd.Pen = colorBand1.EndLinePen;

			colorBand1.ResizeStart=true;
		  colorBand1.ResizeEnd=true;

			tChart1.Aspect.View3D = 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.
		/// </summary>
		private void InitializeComponent() {
			this.BPStart = new Steema.TeeChart.ButtonPen();
			this.BPEnd = new Steema.TeeChart.ButtonPen();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// textBox1
			// 
			this.textBox1.Name = "textBox1";
			this.textBox1.Text = "The ColorBand tool allows dragging its start or end edges.\r\n\r\ncolorBand1.ResizeSt" +
				"art = true ;\r\ncolorBand1.ResizeEnd = true ;\r\n\r\nDrag the color band edges...\r\n";
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.BPEnd);

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

AI 解读 AI

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

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