共用方式為


PrintDocument 元件概觀 (Windows Form)

Windows Forms PrintDocument 元件可用來設定描述列印項目的屬性,以及在 Windows 應用程式中列印文件的能力。 它可以與 PrintDialog 元件一起使用,以控制文件列印的各個方面。

使用 PrintDocument 元件

涉及 PrintDocument 元件的兩個主要案例如下:

新增至表單時, PrintDocument 元件會出現在 Visual Studio 中 Windows Forms 設計工具底部的匣中。

另請參閱