PrinterSettings.PaperSourceCollectionとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PrinterSettings.PaperSourceCollectionの意味・解説 

PrinterSettings.PaperSourceCollection クラス

PaperSource オブジェクトのコレクションを格納します。

名前空間: System.Drawing.Printing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Class PaperSourceCollection
    Implements ICollection, IEnumerable
Dim instance As PaperSourceCollection
public class PaperSourceCollection : ICollection,
 IEnumerable
public ref class PaperSourceCollection : ICollection,
 IEnumerable
public class PaperSourceCollection implements
 ICollection, IEnumerable
public class PaperSourceCollection implements
 ICollection, IEnumerable
解説解説

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.Object
  System.Drawing.Printing.PrinterSettings.PaperSourceCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PrinterSettings.PaperSourceCollection メンバ
System.Drawing.Printing 名前空間
PaperSource クラス
PrinterSettings.PaperSources プロパティ
PrinterSettings.InstalledPrinters プロパティ
PrinterSettings.PaperSizes プロパティ
PrinterSettings.PrinterResolutions プロパティ
ListControl.DisplayMember

PrinterSettings.PaperSourceCollection コンストラクタ

PrinterSettings.PaperSourceCollection クラスの新しいインスタンスを初期化します。

名前空間: System.Drawing.Printing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub New ( _
    array As PaperSource() _
)
Dim array As PaperSource()

Dim instance As New PaperSourceCollection(array)
public PaperSourceCollection (
    PaperSource[] array
)
public:
PaperSourceCollection (
    array<PaperSource^>^ array
)
public PaperSourceCollection (
    PaperSource[] array
)
public function PaperSourceCollection (
    array : PaperSource[]
)

パラメータ

array

PaperSource 型の配列。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PrinterSettings.PaperSourceCollection クラス
PrinterSettings.PaperSourceCollection メンバ
System.Drawing.Printing 名前空間
PaperSource クラス

PrinterSettings.PaperSourceCollection プロパティ


パブリック プロパティパブリック プロパティ

明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.Count このメンバの説明については、Count のトピックを参照してください。
インターフェイスの明示的な実装 System.Collections.ICollection.IsSynchronized このメンバの説明については、IsSynchronized のトピックを参照してください。
インターフェイスの明示的な実装 System.Collections.ICollection.SyncRoot このメンバの説明については、SyncRoot のトピックを参照してください。
参照参照

関連項目

PrinterSettings.PaperSourceCollection クラス
System.Drawing.Printing 名前空間
PaperSource クラス
PrinterSettings.PaperSources プロパティ
PrinterSettings.InstalledPrinters プロパティ
PrinterSettings.PaperSizes プロパティ
PrinterSettings.PrinterResolutions プロパティ
ListControl.DisplayMember

PrinterSettings.PaperSourceCollection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.ICollection.CopyTo このメンバの説明については、CopyTo のトピックを参照してください。
インターフェイスの明示的な実装 System.Collections.IEnumerable.GetEnumerator このメンバの説明については、GetEnumerator のトピックを参照してください。
参照参照

関連項目

PrinterSettings.PaperSourceCollection クラス
System.Drawing.Printing 名前空間
PaperSource クラス
PrinterSettings.PaperSources プロパティ
PrinterSettings.InstalledPrinters プロパティ
PrinterSettings.PaperSizes プロパティ
PrinterSettings.PrinterResolutions プロパティ
ListControl.DisplayMember

PrinterSettings.PaperSourceCollection メンバ

PaperSource オブジェクトのコレクションを格納します。

PrinterSettings.PaperSourceCollection データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド PrinterSettings.PaperSourceCollection PrinterSettings.PaperSourceCollection クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 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 のトピックを参照してください。
参照参照

関連項目

PrinterSettings.PaperSourceCollection クラス
System.Drawing.Printing 名前空間
PaperSource クラス
PrinterSettings.PaperSources プロパティ
PrinterSettings.InstalledPrinters プロパティ
PrinterSettings.PaperSizes プロパティ
PrinterSettings.PrinterResolutions プロパティ
ListControl.DisplayMember



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「PrinterSettings.PaperSourceCollection」の関連用語

PrinterSettings.PaperSourceCollectionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PrinterSettings.PaperSourceCollectionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS