ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Axis/Axis_LabelAlign.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_LabelAlign : Steema.TeeChart.Samples.BaseForm
	{
		private System.Windows.Forms.RadioButton radioButton1;
		private System.Windows.Forms.RadioButton radioButton2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.CheckBox checkBox1;
		private Steema.TeeChart.Styles.HorizBar horizBar1;
		private System.ComponentModel.IContainer components = null;

		public Axis_LabelAlign()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();
			
			// Sample values 
			this.horizBar1.Add(278, "Africa");
  		this.horizBar1.Add( 123, "America");
  		this.horizBar1.Add( 321, "Asia");
  		this.horizBar1.Add( 432, "Australia");
  		this.horizBar1.Add( 89, "Europe");
			this.horizBar1.Add( 300, "Moon");

			// show % values
			this.horizBar1.Marks.Style = TeeChart.Styles.MarksStyles.Percent;
			// Set axes labels to "opposite" alignment
			this.tChart1.Axes.Left.Labels.Align = TeeChart.AxisLabelAlign.Opposite;
			this.tChart1.Axes.Right.Labels.Align = TeeChart.AxisLabelAlign.Opposite;
		}

		/// <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()

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

AI 解读 AI

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

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