语言

PrinterSettings.PaperSourceCollection.Add(PaperSource) 方法

定义

将指定的 PaperSource 值添加到末尾 PrinterSettings.PaperSourceCollection。

public:
 int Add(System::Drawing::Printing::PaperSource ^ paperSource);
public int Add(System.Drawing.Printing.PaperSource paperSource);
member this.Add : System.Drawing.Printing.PaperSource -> int
Public Function Add (paperSource As PaperSource) As Integer

参数

paperSource
PaperSource

PaperSource要添加到集合中。

返回

添加的从零开始的 PaperSource 索引。

适用于