using HotelPms.Share.Windows.Report.Member; using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace HotelPms.Share.Windows.Report { public class GridStyle : OutputStyle { public enum BoderStyle : int { [Description("全体枠線")] All = 0, [Description("行下線")] UnderLine, } /// /// 行スタイルのディフォルト /// public RowStyle DefaultRowStyle { get; set; } = new RowStyle(); /// /// セルスタイルのディフォルト /// public CellStyle DefaultCellStyle { get; set; } = new CellStyle(); /// /// 指定行インデックスのスタイル /// 例:小計、合計行 /// public SortedDictionary RowStyle { get; set; } = new SortedDictionary(); /// /// 列単位のスタイル /// public List ColumnStyle { get; set; } = new List(); /// /// 罫線の様式 /// public BoderStyle Boder { get; set; } = BoderStyle.All; /// /// 交互に行背景色を印字するかどうか /// public Color AlternatingRowColor { get; set; } = Color.Empty; //Color.FromArgb(255, 216, 228, 248); /// /// ヘッダー印字情報 /// public PageHeader Header { get; set; } = new PageHeader(); /// /// フッター印字情報 /// public PageFooter Footer { get; set; } = new PageFooter(); public GridStyle() { DefaultRowStyle.Padding = new Padding(0, 3, 0, 3); } } }