• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class TextPart

A text MIME entity (RFC 2046 §4.1) such as text/plain, text/html, or text/rtf. The text content is decoded and stored as a string.

Inheritance
object
MimeEntity
TextPart
Inherited Members
MimeEntity.Headers
MimeEntity.ContentType
MimeEntity.ContentDisposition
MimeEntity.ContentId
MimeEntity.TransferEncoding
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class TextPart : MimeEntity

Constructors

View Source

TextPart(MimeHeaderCollection, ContentType, ContentDisposition?, string?, ContentTransferEncoding, string, Encoding)

Initializes a new instance of the TextPart class.

Declaration
public TextPart(MimeHeaderCollection headers, ContentType contentType, ContentDisposition? contentDisposition, string? contentId, ContentTransferEncoding transferEncoding, string text, Encoding encoding)
Parameters
Type Name Description
MimeHeaderCollection headers
ContentType contentType
ContentDisposition contentDisposition
string contentId
ContentTransferEncoding transferEncoding
string text
Encoding encoding

Properties

View Source

Encoding

Gets the charset encoding used to decode the text.

Declaration
public Encoding Encoding { get; }
Property Value
Type Description
Encoding
View Source

IsHtml

Gets a value indicating whether this is text/html.

Declaration
public bool IsHtml { get; }
Property Value
Type Description
bool
View Source

IsPlain

Gets a value indicating whether this is text/plain.

Declaration
public bool IsPlain { get; }
Property Value
Type Description
bool
View Source

IsRtf

Gets a value indicating whether this is text/rtf.

Declaration
public bool IsRtf { get; }
Property Value
Type Description
bool
View Source

Text

Gets the decoded text content.

Declaration
public string Text { get; }
Property Value
Type Description
string
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX