Property | Type | Description | |
---|---|---|---|
IsFormat | bool | ||
TextPart | System |
Method | Description | |
---|---|---|
Accept ( MimeKit.MimeVisitor visitor ) : void |
Dispatches to the specific visit method for this MIME entity. This default implementation for MimeKit.TextPart nodes calls MimeKit.MimeVisitor.VisitTextPart. Override this method to call into a more specific method on a derived visitor class of the MimeKit.MimeVisitor class. However, it should still support unknown visitors by calling MimeKit.MimeVisitor.VisitTextPart. |
|
GetText ( Portable.Text.Encoding encoding ) : string |
Gets the decoded text content using the provided charset encoding to override the charset specified in the Content-Type parameters. Uses the provided charset encoding to convert the raw text content into a unicode string, overriding any charset specified in the Content-Type header. |
|
GetText ( string charset ) : string |
Gets the decoded text content using the provided charset to override the charset specified in the Content-Type parameters. Uses the provided charset encoding to convert the raw text content into a unicode string, overriding any charset specified in the Content-Type header. |
|
SetText ( Portable.Text.Encoding encoding, string text ) : void |
Sets the text content and the charset parameter in the Content-Type header. This method is similar to setting the TextPart.Text property, but allows specifying a charset encoding to use. Also updates the ContentType.Charset property. |
|
SetText ( string charset, string text ) : void |
Sets the text content and the charset parameter in the Content-Type header. This method is similar to setting the TextPart.Text property, but allows specifying a charset encoding to use. Also updates the ContentType.Charset property. |
|
TextPart ( ) : System |
Initializes a new instance of the MimeKit.TextPart class with a Content-Type of text/plain. Creates a default TextPart with a mime-type of text/plain. |
|
TextPart ( MimeKit.MimeEntityConstructorArgs args ) : System |
Initializes a new instance of the MimeKit.TextPart class. This constructor is used by MimeKit.MimeParser. |
|
TextPart ( string subtype ) : System |
Initializes a new instance of the MimeKit.TextPart class with the specified text subtype. Creates a new TextPart with the specified subtype. |
Method | Description | |
---|---|---|
IsFormat ( TextFormat format ) : bool |
Determines whether or not the text is in the specified format. Determines whether or not the text is in the specified format. |
|
TextPart ( MimeKit.ContentType contentType ) : System |
public Accept ( MimeKit.MimeVisitor visitor ) : void | ||
visitor | MimeKit.MimeVisitor | The visitor. |
return | void |
public GetText ( Portable.Text.Encoding encoding ) : string | ||
encoding | Portable.Text.Encoding | The charset encoding to use. |
return | string |
public GetText ( string charset ) : string | ||
charset | string | The charset encoding to use. |
return | string |
public SetText ( Portable.Text.Encoding encoding, string text ) : void | ||
encoding | Portable.Text.Encoding | The charset encoding. |
text | string | The text content. |
return | void |
public SetText ( string charset, string text ) : void | ||
charset | string | The charset encoding. |
text | string | The text content. |
return | void |
public TextPart ( MimeKit.MimeEntityConstructorArgs args ) : System | ||
args | MimeKit.MimeEntityConstructorArgs | Information used by the constructor. |
return | System |
public TextPart ( string subtype ) : System | ||
subtype | string | The media subtype. |
return | System |