public class MhtSaveOptions extends SaveOptions
Allows to specify additional options when saving MailMessage to Mhtml format.
Constructor and Description |
---|
MhtSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
com.aspose.ms.System.Collections.Specialized.StringDictionary |
getFormatTemplates()
Gets the format templates.
|
int |
getMhtFormatOptions()
Defines additional options when saving in MHTML format.
|
boolean |
getPreserveOriginalBoundaries()
Defines whether need keep original boundaries in mail message when saving or not.
|
boolean |
getPreserveOriginalDate()
Defines whether need keep original date in mail message when saving or not.
|
int |
getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml.
|
List<String> |
getRenderingHeaders()
Gets list of headers for rendering.
|
boolean |
getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
|
boolean |
getSkipInlineImages()
Defines whether skip references on images at saving in mhtml or not.
|
void |
setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving.
|
void |
setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
|
void |
setMhtFormatOptions(int value)
Defines additional options when saving in MHTML format.
|
void |
setPreserveOriginalBoundaries(boolean value)
Defines whether need keep original boundaries in mail message when saving or not.
|
void |
setPreserveOriginalDate(boolean value)
Defines whether need keep original date in mail message when saving or not.
|
void |
setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml.
|
void |
setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
|
void |
setSkipInlineImages(boolean value)
Defines whether skip references on images at saving in mhtml or not.
|
createSaveOptions, getCustomProgressHandler, getDefaultEml, getDefaultHtml, getDefaultMhtml, getDefaultMsg, getDefaultMsgUnicode, getMailMessageSaveType, setCustomProgressHandler, setMailMessageSaveType
public MhtSaveOptions()
Initializes a new instance of this class that can be used to save a MailMessage in the Mhtml format.
public final int getRenderedContactFields()
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public final void setRenderedContactFields(int value)
Defines groups of Contact fields which will be included in output mhtml. Default value is ContactFieldsSet.AllExisting.
public final int getMhtFormatOptions()
Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.
public final void setMhtFormatOptions(int value)
Defines additional options when saving in MHTML format. Default value is MhtFormatOptions.WriteHeader | MhtFormatOptions.WriteOutlineAttachments.
public final boolean getPreserveOriginalBoundaries()
Defines whether need keep original boundaries in mail message when saving or not.
public final void setPreserveOriginalBoundaries(boolean value)
Defines whether need keep original boundaries in mail message when saving or not.
public final boolean getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
public final void setCheckBodyContentEncoding(boolean value)
Defines whether need check message body content encoding when saving.
public final boolean getSaveAttachments()
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.public final void setSaveAttachments(boolean value)
Gets or sets a value indicating whether to save attachments.
Value:true
if attachments should be saved; otherwise, false
.public final boolean getPreserveOriginalDate()
Defines whether need keep original date in mail message when saving or not. Default value is true.
public final void setPreserveOriginalDate(boolean value)
Defines whether need keep original date in mail message when saving or not. Default value is true.
public final String getCssStyles()
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.public final void setCssStyles(String value)
Gets or sets the additional css styles for the formatter.
Value: The styles to be injected into resulting html body.public final com.aspose.ms.System.Collections.Specialized.StringDictionary getFormatTemplates()
Gets the format templates.
Value: The format templates.public final List<String> getRenderingHeaders()
Gets list of headers for rendering.
public final boolean getSkipInlineImages()
Defines whether skip references on images at saving in mhtml or not. Default value is false.
public final void setSkipInlineImages(boolean value)
Defines whether skip references on images at saving in mhtml or not. Default value is false.