C# Class HtmlPreviewVisitor, code

Visits a MimeMessage and generates HTML suitable to be rendered by a browser control.
Inheritance: MimeVisitor
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode Description
HtmlPreviewVisitor ( string tempDirectory )

Creates a new HtmlPreviewVisitor.

Méthodes protégées

Méthode Description
VisitMessagePart ( MessagePart, entity ) : void
VisitMimePart ( MimePart, entity ) : void
VisitMultipartAlternative ( MultipartAlternative alternative ) : void
VisitMultipartRelated ( MultipartRelated related ) : void
VisitTextPart ( TextPart, entity ) : void
VisitTnefPart ( TnefPart entity ) : void

Private Methods

Méthode Description
HtmlTagCallback ( HtmlTagContext ctx, HtmlWriter, htmlWriter ) : void
SaveImage ( MimePart, image, string url ) : string
TryGetImage ( string url, MimePart, &image ) : bool

Method Details

HtmlPreviewVisitor() public méthode

Creates a new HtmlPreviewVisitor.
public HtmlPreviewVisitor ( string tempDirectory )
tempDirectory string A temporary directory used for storing image files.

VisitMessagePart() protected méthode

protected VisitMessagePart ( MessagePart, entity ) : void
entity MessagePart,
Résultat void

VisitMimePart() protected méthode

protected VisitMimePart ( MimePart, entity ) : void
entity MimePart,
Résultat void

VisitMultipartAlternative() protected méthode

protected VisitMultipartAlternative ( MultipartAlternative alternative ) : void
alternative MultipartAlternative
Résultat void

VisitMultipartRelated() protected méthode

protected VisitMultipartRelated ( MultipartRelated related ) : void
related MultipartRelated
Résultat void

VisitTextPart() protected méthode

protected VisitTextPart ( TextPart, entity ) : void
entity TextPart,
Résultat void

VisitTnefPart() protected méthode

protected VisitTnefPart ( TnefPart entity ) : void
entity TnefPart
Résultat void