コード例 #1
0
 public double GetRemainingSpace(int pageCount, bool supposeLastPage)
 {
     return(PrintingDimension.GetHeightForBodyGrid(pageCount, supposeLastPage) - UsedSpace - Threshold);
 }
コード例 #2
0
        public bool HasSpace(double space, int pageCount, bool supposeLastPage)
        {
            var maxGridHeight = PrintingDimension.GetHeightForBodyGrid(pageCount, supposeLastPage);

            return(maxGridHeight - UsedSpace - space >= 0);
        }