The DefaultPaperSize type exposes the following members.

Constructors

  NameDescription
DefaultPaperSize

Methods

  NameDescription
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetCurrentLocaleDefaultPaperSize
Returns default paper size based on current system locale. This function uses the same strategy as Add Printer Wizard in choosing of default page size, that is returns value based on LOCALE_SYSTEM_DEFAULT LCID. Implementation notes: this function first attempt to retrieve size using GetLocaleInfo WinApi function, which must succeed on 2000/XP systems. If this attempt failed then it retrieves region descriptor and returns size based on its own knowledge.
GetDefaultPaperSize
Returns the default paper size. If default printer presents in the system then returns its default paper size, otherwise returns size based on the current locale (see GetCurrentLocaleDefaultPaperSize() for details).
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also