MailPrinter

MailPrinter class

Represents a printer for mail messages.

public sealed class MailPrinter : IPrintSettingsProvider

Constructors

Name Description
MailPrinter() Initializes a new instance of the MailPrinter class with A4 paper setting for page size and 0.5in margin for all sides.
MailPrinter(IPrintSettingsProvider) Initializes a new instance of the MailPrinter class using given settings provider.

Properties

Name Description
CultureName { get; set; } Gets or sets the culture name in the format languagecode2-country/regioncode2.
DpiX { get; set; } Gets or sets the horizontal DPI.
DpiY { get; set; } Gets or sets the vertical DPI.
FormattingFlags { get; set; } Gets or sets the printer options.
MarginBottom { get; set; } Gets or sets the bottom margin.
MarginLeft { get; set; } Gets or sets the left margin.
MarginRight { get; set; } Gets or sets the right margin.
MarginTop { get; set; } Gets or sets the top margin.
PageHeight { get; set; } Gets or sets the height of the page.
PageUnit { get; set; } Gets or sets the page unit.
PageWidth { get; set; } Gets or sets the width of the page.

Methods

Name Description
Print(MailMessage, Stream, PrintFormat) Prints the specified message object using the desired format.
Print(MailMessage, string, PrintFormat) Prints the specified message object using the desired format.
Print(MapiMessage, Stream, PrintFormat) Prints the specified MSG object using the desired format.
Print(MapiMessage, string, PrintFormat) Prints the specified MSG object using the desired format.

See Also