63 lines
1.0 KiB
C#
63 lines
1.0 KiB
C#
using System;
|
|
using System.Drawing;
|
|
|
|
namespace GoldPrinter
|
|
{
|
|
public class Body : Outer
|
|
{
|
|
public string[,] GridText
|
|
{
|
|
get
|
|
{
|
|
return this.mdrawGrid.GridText;
|
|
}
|
|
set
|
|
{
|
|
this.mblnHadInitialized = true;
|
|
this.mdrawGrid.GridText = value;
|
|
}
|
|
}
|
|
|
|
public string ColsAlignString
|
|
{
|
|
get
|
|
{
|
|
return this.mdrawGrid.ColsAlignString;
|
|
}
|
|
set
|
|
{
|
|
this.mdrawGrid.ColsAlignString = value;
|
|
}
|
|
}
|
|
|
|
public override Font Font
|
|
{
|
|
get
|
|
{
|
|
return this.mdrawGrid.Font;
|
|
}
|
|
set
|
|
{
|
|
this.mdrawGrid.Font = value;
|
|
}
|
|
}
|
|
|
|
public Body()
|
|
{
|
|
this.IsDrawAllPage = false;
|
|
this.mdrawGrid.AlignMent = AlignFlag.Left;
|
|
this.mdrawGrid.Border = GridBorderFlag.Single;
|
|
this.mdrawGrid.Line = GridLineFlag.Both;
|
|
base.IsAverageColsWidth = false;
|
|
this.mdrawGrid.Merge = GridMergeFlag.None;
|
|
this.mdrawGrid.Font = new Font("宋体", 12f);
|
|
this.mdrawGrid.PreferredRowHeight = this.mdrawGrid.Font.Height + 2;
|
|
}
|
|
|
|
public Body(int rows, int cols) : this()
|
|
{
|
|
base.Initialize(rows, cols);
|
|
}
|
|
}
|
|
}
|