PrintDocument 组件概述(Windows 窗体)

Windows 窗体 PrintDocument 组件用于设置属性,这些属性描述在基于 Windows 的应用程序中要打印什么内容以及打印文档的能力。 此组件可与 PrintDialog 组件一起使用,控制文档打印的各个方面。

使用 PrintDocument 组件

涉及 PrintDocument 组件的两种主要情况是:

PrintDocument 组件添加到窗体后,它将在 Visual Studio 中的 Windows 窗体设计器底部的任务栏中显示。

另请参阅