private Size GetThumbCount(int pagesPerSheet)
{
Size size;
// Define the number of the columns and rows on the sheet for the Landscape-oriented paper.
switch (pagesPerSheet)
{
case 16: size = new Size(4, 4); break;
case 9: size = new Size(3, 3); break;
case 8: size = new Size(4, 2); break;
case 6: size = new Size(3, 2); break;
case 4: size = new Size(2, 2); break;
case 2: size = new Size(2, 1); break;
default: size = new Size(1, 1); break;
}
// Switch the width and height if the paper is in the Portrait orientation.
if (mPaperSize.Width < mPaperSize.Height)
return new Size(size.Height, size.Width);
return size;
}
// ExEnd:GetThumbCount