CoolPrintPreview/CoolPrintPreviewControl.cs
(开头部分) 29KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Text;
using System.Drawing.Printing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Windows.Forms.Design;
namespace CoolPrintPreview
{
/// <summary>
/// Specifies the zoom mode for the <see cref="CoolPrintPreviewControl"/> control.
/// </summary>
internal enum ZoomMode
{
/// <summary>
/// Show the preview in actual size.
/// </summary>
ActualSize,
/// <summary>
/// Show a full page.
/// </summary>
FullPage,
/// <summary>
/// Show a full page width.
/// </summary>
PageWidth,
/// <summary>
/// Show two full pages.
/// </summary>
TwoPages,
/// <summary>
/// Use the zoom factor specified by the <see cref="CoolPrintPreviewControl.Zoom"/> property.
/// </summary>
Custom
}
/// <summary>
/// Represents a preview of one or two pages in a <see cref="PrintDocument"/>.
/// </summary>
/// <remarks>
/// This control is similar to the standard <see cref="PrintPreviewControl"/> but
/// it displays pages as they are rendered. By contrast, the standard control
/// waits until the entire document is rendered before it displays anything.
/// </remarks>
internal class CoolPrintPreviewControl : UserControl
{
Panel hidess;
int _first, _last, _index;
//-------------------------------------------------------------
#region ** fields
PrintDocument _doc;
ZoomMode _zoomMode;
double _zoom;
int _startPage;
后面还有 771 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
