PrinterSettings.PaperSourceCollection.Item プロパティ
アセンブリ: System.Drawing (system.drawing.dll 内)
構文
Dim instance As PaperSourceCollection Dim index As Integer Dim value As PaperSource value = instance(index)
プロパティ値
指定したインデックス位置にある PaperSource。
' 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); }
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Weblioに収録されているすべての辞書からPrinterSettings.PaperSourceCollection.Item プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からPrinterSettings.PaperSourceCollection.Item プロパティ を検索
- PrinterSettings.PaperSourceCollection.Item プロパティのページへのリンク