namespace com.azkoss.excellite { using System; using System.Reflection; /// ///Collection of horizontal page breaks (HorizontalPageBreak). /// public class HorizontalPageBreakCollection : PageBreakCollection { // Methods internal HorizontalPageBreakCollection() { } internal HorizontalPageBreakCollection(HorizontalPageBreakCollection source) { foreach (HorizontalPageBreak break1 in source.items) { base.items.Add(new HorizontalPageBreak(break1.Row, break1.FirstColumn, break1.LastColumn)); } } ///Ads a new horizontal page break. /// ///Ads a new horizontal page break above the specified row. /// ///The zero-based index of the row. public void Add(int row) { base.Add(new HorizontalPageBreak(row, 0, 0xff)); } /// ///Ads a new horizontal page break above the specified row and within specified columns. /// ///The zero-based index of the row. ///The zero-based index of the first column. ///The zero-based index of the last column. public void Add(int row, int firstColumn, int lastColumn) { base.Add(new HorizontalPageBreak(row, firstColumn, lastColumn)); } internal override PageBreak InstanceCreator(int breakIndex, int firstLimit, int lastLimit) { return new HorizontalPageBreak(breakIndex, firstLimit, lastLimit); } // Properties /// ///Gets or sets the horizontal page break at the specified index. /// public HorizontalPageBreak this[int index] { get { return (HorizontalPageBreak) base.items[index]; } set { base.items[index] = value; } } } }