This documentation is archived and is not being maintained.

PrinterSettings.PaperSizeCollection Class

Contains a collection of PaperSize objects.

For a list of all members of this type, see PrinterSettings.PaperSizeCollection Members.


[Visual Basic]
Public Class PrinterSettings.PaperSizeCollection
   Implements ICollection, IEnumerable
public class PrinterSettings.PaperSizeCollection : ICollection,
public __gc class PrinterSettings.PaperSizeCollection : public
   ICollection, IEnumerable
public class PrinterSettings.PaperSizeCollection implements
   ICollection, IEnumerable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The PrinterSettings.PaperSizeCollection contains PaperSize instances that represents the paper sizes through the PaperSize.Kind property, which contains one of the PaperKind values.

Typically, you set a page's paper size through the PageSettings.PaperSize property to a valid PaperSize instance available through the PaperSizes collection.

See the PaperSize constructor to find out how you can specify a custom paper size.


Namespace: System.Drawing.Printing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

PrinterSettings.PaperSizeCollection Members | System.Drawing.Printing Namespace | PaperSize | PaperSizes | InstalledPrinters | PaperSources | PrinterResolutions | ListControl.DisplayMember