basegraphicitem.cs

来自「c#源代码」· CS 代码 · 共 78 行

CS
78
字号
//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------

namespace SharpReportCore {
	using System;
	using System.Drawing;
	using System.Drawing.Drawing2D;
	using System.ComponentModel;
	using SharpReportCore;
	
	
	/// <summary>
	/// Baseclass for all Graphical Items	
	/// </summary>
	/// <remarks>
	/// 	created by - Forstmeier Peter
	/// 	created on - 31.08.2005 13:24:59
	/// </remarks>
	public class BaseGraphicItem : BaseReportItem,IItemRenderer {
		
		private int thickness = 1;
		private DashStyle dashStyle = DashStyle.Solid;
		
		public BaseGraphicItem():base() {
		}
		
		
		protected  SizeF MeasureReportItem (SharpReportCore.ReportPageEventArgs e,IItemRenderer item) {
				return new SizeF (item.Size.Width,item.Size.Height);
		}
		
		
		#region property's
		/// <summary>
		/// Line Thickness of graphical Element
		/// </summary>
		
		[Browsable(true),
		 Category("Appearance"),
		 Description("Thickness of Line")]
		
		public int Thickness {
			get {
				return thickness;
			}
			set {
				thickness = value;
				base.NotifyPropertyChanged("FormatString",true);
			}
		}
		
		[Browsable(true),
		 Category("Appearance"),
		 Description("Linestyle")]
		public DashStyle DashStyle {
			get {
				return dashStyle;
			}
			set {
				dashStyle = value;
				base.NotifyPropertyChanged("FormatString",true);
			}
		}
		
		#endregion
	
		
		
	}
}

⌨️ 快捷键说明

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