using System; namespace CPF.ReoGrid { [Serializable] public class PageBreakCannotRemoveException : ReoGridPrintException { public int Index { get; set; } public PageBreakCannotRemoveException(int index) : this("Page break at index " + index.ToString() + " cannot be removed, spreadsheet must be have at least two page breaks in order to decide the printable range.", index) { } public PageBreakCannotRemoveException(string msg, int index) : base(msg) { this.Index = index; } } }