| File: System\Drawing\Printing\PreviewPageInfo.cs | Web Access |
| Project: src\winforms\src\System.Drawing.Common\src\System.Drawing.Common.csproj (System.Drawing.Common) |
// 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 => _image; /// <summary> /// Gets the size of the printed page, in hundredths of an inch. /// </summary> public Size PhysicalSize => _physicalSize; }