📄 abstractlayout.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.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -