📄 header.cs
字号:
using System;
using System.Drawing;
namespace GoldPrinter
{
/// <summary>
/// Header,紧挨在网格体上的对象,限制在10行内,列数不限
///
/// 程序提供:周方勇;Email:flygoldfish@sina.com。
/// 请 关 注:WebMIS.Net快速开发工具,不写一行程序开发B/S架构下MIS、OA、CRM、人事管理、档案管理等数据库网页系统。简单、实用、稳定、可靠。
/// 下 载:
/// 上海奥联:WWW.AlinkSoft.COM
/// 用友华表:WWW.CellSoft.CC
///★★★★★您可以免费使用此程序,但是请您保留此说明,以维护知识产权★★★★★
/// </summary>
public class Header:Outer
{
private const int CONST_MAX_ROWS = 10;
private readonly int MAX_ROWS;
public Header()
{
MAX_ROWS = SetMaxRows();
}
protected virtual int SetMaxRows()
{
return CONST_MAX_ROWS;
}
public Header(int rows,int cols):this()
{
this.Initialize(rows,cols);
}
public override void Initialize(int rows, int cols)
{
int mrows = rows;
if (mrows < 0)
{
mrows = 0;
}
if (mrows > MAX_ROWS)
{
throw new Exception("行数限制在“" + MAX_ROWS.ToString() + "”行以内!");
}
else
{
base.Initialize(mrows,cols);
}
}
}//End Class
}//End NameSpace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -