PrinterSettings.PaperSizeCollection.Add(PaperSize) 方法

定义

PrinterResolution 添加到集合的末尾。Adds a PrinterResolution to the end of the collection.

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

参数

paperSize
PaperSize

要添加到集合中的 PaperSizeThe PaperSize to add to the collection.

返回

Int32

新添加项的从零开始的索引。The zero-based index of the newly added item.

适用于