/
PreviewPageInfo.cs
41 lines (36 loc) · 1.15 KB
/
PreviewPageInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Drawing.Printing
{
/// <summary>
/// Specifies print preview information for a single page. This class cannot be inherited.
/// </summary>
public sealed class PreviewPageInfo
{
private readonly Image _image;
// Physical measures in hundredths of an inch
private Size _physicalSize = Size.Empty;
/// <summary>
/// Initializes a new instance of the <see cref='PreviewPageInfo'/> class.
/// </summary>
public PreviewPageInfo(Image image, Size physicalSize)
{
_image = image;
_physicalSize = physicalSize;
}
/// <summary>
/// Gets the image of the printed page.
/// </summary>
public Image Image
{
get { return _image; }
}
/// <summary>
/// Gets the size of the printed page, in hundredths of an inch.
/// </summary>
public Size PhysicalSize
{
get { return _physicalSize; }
}
}
}