PrinterSettings.PaperSourceCollection クラス
アセンブリ: System.Drawing (system.drawing.dll 内)


PrinterSettings.PaperSourceCollection は、PaperSource.Kind プロパティによって給紙トレイを表す PaperSource インスタンスを格納します。このプロパティは、PaperSourceKind 値のいずれかを格納します。
通常、PageSettings.PaperSource プロパティで、PaperSources コレクションから使用できる有効な PaperSource インスタンスにページの給紙方法を設定します。

プリンタでサポートされている給紙方法を comboPaperSource コンボ ボックスに設定するコード例を次に示します。SourceName は、コンボ ボックスの DisplayMember プロパティを通じて追加される項目の表示文字列を提供するプロパティとして識別されます。この例では、printDoc という名前の PrintDocument 変数と、特定のコンボ ボックスが存在することが必要です。
' Add list of paper sources found on the printer to the combo box. ' The DisplayMember property is used to identify the property that will provide the display string. comboPaperSource.DisplayMember = "SourceName" Dim pkSource As PaperSource For i = 0 to printDoc.PrinterSettings.PaperSources.Count - 1 pkSource = printDoc.PrinterSettings.PaperSources.Item(i) comboPaperSource.Items.Add(pkSource) Next
// Add list of paper sources found on the printer to the combo box. // The DisplayMember property is used to identify the property that will provide the display string. comboPaperSource.DisplayMember="SourceName"; PaperSource pkSource; for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count; i++){ pkSource = printDoc.PrinterSettings.PaperSources[i]; comboPaperSource.Items.Add(pkSource); }
// Add list of paper sources found on the printer to the combo box. // The DisplayMember property is used to identify the property that will provide the display String*. comboPaperSource->DisplayMember = "SourceName"; PaperSource^ pkSource; for ( int i = 0; i < printDoc->PrinterSettings->PaperSources->Count; i++ ) { pkSource = printDoc->PrinterSettings->PaperSources[ i ]; comboPaperSource->Items->Add( pkSource ); }
// Add list of paper sources found on the printer to the combo box. // The DisplayMember property is used to identify the property that // will provide the display string. comboPaperSource.set_DisplayMember("SourceName"); PaperSource pkSource; for (int i = 0; i < printDoc.get_PrinterSettings().get_PaperSources(). get_Count(); i++) { pkSource = printDoc.get_PrinterSettings().get_PaperSources(). get_Item(i); comboPaperSource.get_Items().Add(pkSource); }

System.Drawing.Printing.PrinterSettings.PaperSourceCollection


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PrinterSettings.PaperSourceCollection コンストラクタ
アセンブリ: System.Drawing (system.drawing.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PrinterSettings.PaperSourceCollection プロパティ


名前 | 説明 | |
---|---|---|
![]() | System.Collections.ICollection.Count | このメンバの説明については、Count のトピックを参照してください。 |
![]() | System.Collections.ICollection.IsSynchronized | このメンバの説明については、IsSynchronized のトピックを参照してください。 |
![]() | System.Collections.ICollection.SyncRoot | このメンバの説明については、SyncRoot のトピックを参照してください。 |

PrinterSettings.PaperSourceCollection メソッド

名前 | 説明 | |
---|---|---|
![]() | Add | 指定した PaperSource を PrinterSettings.PaperSourceCollection の末尾に追加します。 |
![]() | CopyTo | 指定したインデックスを開始位置として、指定した配列に現在の PrinterSettings.PaperSourceCollection の内容をコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetEnumerator | コレクションを反復処理できる列挙子を返します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | System.Collections.ICollection.CopyTo | このメンバの説明については、CopyTo のトピックを参照してください。 |
![]() | System.Collections.IEnumerable.GetEnumerator | このメンバの説明については、GetEnumerator のトピックを参照してください。 |

PrinterSettings.PaperSourceCollection メンバ
PaperSource オブジェクトのコレクションを格納します。
PrinterSettings.PaperSourceCollection データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | PrinterSettings.PaperSourceCollection | PrinterSettings.PaperSourceCollection クラスの新しいインスタンスを初期化します。 |


名前 | 説明 | |
---|---|---|
![]() | Add | 指定した PaperSource を PrinterSettings.PaperSourceCollection の末尾に追加します。 |
![]() | CopyTo | 指定したインデックスを開始位置として、指定した配列に現在の PrinterSettings.PaperSourceCollection の内容をコピーします。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetEnumerator | コレクションを反復処理できる列挙子を返します。 |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | System.Collections.ICollection.CopyTo | このメンバの説明については、CopyTo のトピックを参照してください。 |
![]() | System.Collections.IEnumerable.GetEnumerator | このメンバの説明については、GetEnumerator のトピックを参照してください。 |
![]() | System.Collections.ICollection.Count | このメンバの説明については、Count のトピックを参照してください。 |
![]() | System.Collections.ICollection.IsSynchronized | このメンバの説明については、IsSynchronized のトピックを参照してください。 |
![]() | System.Collections.ICollection.SyncRoot | このメンバの説明については、SyncRoot のトピックを参照してください。 |

Weblioに収録されているすべての辞書からPrinterSettings.PaperSourceCollectionを検索する場合は、下記のリンクをクリックしてください。

- PrinterSettings.PaperSourceCollectionのページへのリンク