⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reportlinecontrol.cs

📁 c#源代码
💻 CS
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

using  System;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;

using SharpReportCore;

/// <summary>
/// This Class is used for drawing Lines
/// </summary>
/// <remarks>
/// 	created by - Forstmeier Peter
/// 	created on - 07.01.2005 15:49:38
/// </remarks>
namespace SharpReport.Designer{
	internal class ReportLineControl : AbstractGraphicControl {
		LineShape shape  = new LineShape();
		public ReportLineControl() {
			InitializeComponent();
			this.SetStyle(ControlStyles.DoubleBuffer |
			              ControlStyles.UserPaint |
			              ControlStyles.AllPaintingInWmPaint |
			              ControlStyles.ResizeRedraw,
			              true);
			this.UpdateStyles();
		}
		
		#region overrides
		protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
			base.OnPaint(e);
			shape.DrawShape(e.Graphics,
			                new BaseLine (this.ForeColor,base.DashStyle,base.Thickness),
			                (RectangleF)this.ClientRectangle);
		}
		public override string ToString() {
				return this.Name;	
		}
		#endregion
		
		
		
		#region Windows Forms Designer generated code
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent() {
			// 
			// ReportGraphicControl
			// 
			this.BackColor = System.Drawing.Color.White;
			this.Name = "ReportLineControl";
			this.Size = new System.Drawing.Size(72, 10);
		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -