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

📄 basereportobject.cs

📁 SharpDevelop2.0.0 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.Xml.Serialization;
	
using System.ComponentModel;
using System.Drawing;
	
/// <summary>
/// This is the BaseClass for all 
///  <see cref="ReportItem"></see> 
/// </summary>
/// <remarks>
/// 	created by - Forstmeier Peter
/// 	created on - 18.08.2005 13:59:11
/// </remarks>
	
namespace SharpReportCore {	
	public class BaseReportObject : IBaseRenderer,INotifyPropertyChanged,
									IDisposable{
		
		private string name;
		private object parent;
		private bool visible = true;
		private bool  canGrow ;
		private bool canShrink ;
		private bool pageBreakBefore;
		private bool pageBreakAfter;
		private bool suspend;
		private Size size;
		private Point location;
		
		private Color backColor;
		private int  sectionOffset;
		
		
		#region SharpReportCore.IPropertyChange interface implementation
		public event PropertyChangedEventHandler PropertyChanged;
		#endregion
		
		public BaseReportObject() {
			this.suspend = true;
		}
	
		
		protected void NotifyPropertyChanged(string property) {
			if (!suspend) {
				if (this.PropertyChanged != null) {
					this.PropertyChanged(this,new PropertyChangedEventArgs (property));
				}
			}
		}
		public void SuspendLayout () {
			suspend = true;
		}

		public void ResumeLayout () {
			suspend = false;
		}
		
		#region properties
		public virtual bool Visible {
			get {
				return visible;
			}
			set {
				visible = value;
				NotifyPropertyChanged ("Visible");
			}
		}
		
		public virtual bool CanGrow {
			get {
				return canGrow;
			}
			set {
				canGrow = value;
				NotifyPropertyChanged ("CanGrow");
			}
		}
		public virtual bool CanShrink {
			get {
				return canShrink;
			}
			set {
				canShrink = value;
				NotifyPropertyChanged ("CanShrink");
			}
		}
		
		
		
		public virtual string Name {
			get {
				return name;
			}
			set {
				name = value;
				NotifyPropertyChanged ("Name");
			}
		}
		
		public virtual bool PageBreakAfter {
			get {
				return pageBreakAfter;
			}
			set {
				pageBreakAfter = value;
				NotifyPropertyChanged ("PageBreakAfter");
			}
		}
		
		
		public virtual bool PageBreakBefore {
			get {
				return pageBreakBefore;
			}
			set {
				pageBreakBefore = value;
				NotifyPropertyChanged ("PageBreakBefore");
			}
		}
		
		
		
		public virtual Size Size {
			get {
				return size;
			}
			set {
				size = value;
				NotifyPropertyChanged ("Size");
			}
		}
		
		public virtual Point Location {
			get {
				return location;
			}
			set {
				location = value;
				NotifyPropertyChanged ("Location");
			}
		}
		
		[Category("Appearance")]
		public virtual Color BackColor {
			get {
				return backColor;
			}
			set {
				backColor = value;
				NotifyPropertyChanged ("BackColor");
			}
		}
		
		[XmlIgnoreAttribute]
		[Browsable(false)]
		public virtual int SectionOffset {
			get {
				return sectionOffset;
			}
			set {
				sectionOffset = value;
			}
		}
		
		[Browsable(false)]
		[XmlIgnoreAttribute]
		public virtual object Parent {
			get {
				return parent;
			}
			set {
				parent = value;
			}
		}
		
		[XmlIgnoreAttribute]
		[Browsable(false)]
		public bool Suspend {
			get {
				return suspend;
			}
		}
		#endregion
		
		
		
		#region SharpReportCore.IBaseRenderer interface implementation
		public virtual void  Render(ReportPageEventArgs rpea) {
			
		}
		#endregion
		
		#region IDisposable
		
		public virtual void Dispose () {
			Dispose(true);
            GC.SuppressFinalize(this);
		}
		
		~BaseReportObject(){
			Dispose(false);
		}
		
		protected virtual void Dispose(bool disposing) {
			if (disposing){
			
			}
		}

		#endregion
	}
}

⌨️ 快捷键说明

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