次の方法で共有


PageSettings.PaperSource プロパティ

ページの給紙方法を取得します (たとえば、プリンタの上段トレイ)。

Public Property PaperSource As PaperSource
[C#]
public PaperSource PaperSource {get; set;}
[C++]
public: __property PaperSource* get_PaperSource();public: __property void set_PaperSource(PaperSource*);
[JScript]
public function get PaperSource() : PaperSource;public function set PaperSource(PaperSource);

プロパティ値

プリンタの給紙方法を指定する PaperSource 。既定値は、プリンタの既定の給紙方法です。

例外

例外の種類 条件
InvalidPrinterException PrinterSettings.PrinterName プロパティで指定されたプリンタが存在しないか、既定のプリンタがインストールされていません。

解説

PaperSource のインスタンスは、 PaperSourceKind 値の 1 つが格納されている PaperSource.Kind プロパティを使用して給紙方法を表します。

ページの PaperSource プロパティを有効な PaperSource に設定します。有効な給紙方法は、 PrinterSettings.PaperSources コレクションから取得できます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

PageSettings クラス | PageSettings メンバ | System.Drawing.Printing 名前空間 | PaperSource | PaperSource.Kind | PaperSourceKind | PrinterSettings.PaperSources