abstractlayout.cs

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

CS
68
字号
//------------------------------------------------------------------------------
// <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.Drawing;
using System.ComponentModel;

using SharpReportCore;
	
	/// <summary>
	/// This class is the BaseClass for all Layout's
	/// </summary>
	/// <remarks>
	/// 	created by - Susanne Jooss
	/// 	created on - 10.09.2005 19:07:17
	/// </remarks>
namespace ReportGenerator {	
	public class AbstractLayout : IReportLayout,IDisposable {
		ReportModel reportModel;
		/// <summary>
		/// Default constructor - initializes all fields to default values
		/// </summary>
		public AbstractLayout() {
		}
		public AbstractLayout(ReportModel reportModel){
			this.reportModel = reportModel;
		}
		
		protected void FormatSingleEntry (IItemRenderer item,
		                                  int itemWidth,
		                                  Point location,
		                                  Font font) {
			item.Size = new Size (itemWidth,item.Size.Height + GlobalValues.EnlargeControl);
			item.Location = new Point (location.X,location.Y);
			item.Font =  font;
		}
		
		#region ReportGenerator.IReportLayout interface implementation
		public virtual void BuildLayout() {
			throw new NotImplementedException("AbstractLayout:BuildLayout must be overriden");
		}
		
		public virtual void BuildLayout(ReportModel reportModel) {
			throw new NotImplementedException("AbstractLayout:BuildLayout must be overriden");
		}
		#endregion
		public ReportModel ReportModel {
			get {
				return reportModel;
			}
		}
		
		
		#region System.IDisposable interface implementation
		public void Dispose() {
			
		}
		#endregion
		
	}
}

⌨️ 快捷键说明

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