CPF/CPF.ReoGrid/PageBreakCannotRemoveException.cs
2024-06-24 10:15:59 +08:00

20 lines
506 B
C#

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;
}
}
}