PaperSourceとは? わかりやすく解説

PaperSource クラス

プリンタ用紙供給する用紙トレイ指定します

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

<SerializableAttribute> _
Public Class PaperSource
[SerializableAttribute] 
public class PaperSource
[SerializableAttribute] 
public ref class PaperSource
/** @attribute SerializableAttribute() */ 
public class PaperSource
SerializableAttribute 
public class PaperSource
解説解説

このクラスを PrinterSettings.PaperSources プロパティと PageSettings.PaperSource プロパティ使用してそれぞれプリンタ利用できる用紙トレイ取得およびページ給紙方法設定行います

印刷詳細については、System.Drawing.Printing 名前空間概要トピック参照してください

使用例使用例

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

PaperSource コンストラクタ


PaperSource プロパティ


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

  名前 説明
パブリック プロパティ Kind 給紙方法取得します
パブリック プロパティ RawKind PaperSourceKind 値のいずれか、またはカスタム値を表す整数取得または設定します
パブリック プロパティ SourceName 給紙方法の名前を取得または設定します
参照参照

関連項目

PaperSource クラス
System.Drawing.Printing 名前空間
PaperSourceKind
PrinterSettings
PrinterSettings.PaperSources
PageSettings.PaperSource プロパティ
ListControl.DisplayMember

PaperSource メソッド


PaperSource メンバ

プリンタ用紙供給する用紙トレイ指定します

PaperSource データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド PaperSource PaperSource クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Kind 給紙方法取得します
パブリック プロパティ RawKind PaperSourceKind 値のいずれか、またはカスタム値を表す整数取得または設定します
パブリック プロパティ SourceName 給紙方法の名前を取得または設定します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PaperSource クラス
System.Drawing.Printing 名前空間
PaperSourceKind
PrinterSettings
PrinterSettings.PaperSources
PageSettings.PaperSource プロパティ
ListControl.DisplayMember


このページでは「.NET Framework クラス ライブラリ リファレンス」からPaperSourceを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPaperSourceを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPaperSource を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PaperSource」の関連用語

PaperSourceのお隣キーワード
検索ランキング

   

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



PaperSourceのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS