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 |
---|---|
String |
getAfterHeadersFormat()
After headers format.
|
String |
getBeforeHeadersFormat()
Before headers format.
|
boolean |
getCheckBodyContentEncoding()
Defines whether need check message body content encoding when saving.
|
String |
getCssStyles()
Gets or sets the additional css styles for the formatter.
|
String |
getDefaultHeaderFormat()
Default header line format.
|
String |
getDefaultPageHeaderFormat()
Default page header format.
|
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.
|
int |
getTimeout()
Limits the time in milliseconds of formatting message while saving in Mht.
|
TimeoutReachedHandler |
getTimeoutReachedHandler()
Raised if timed out while saving to Mhtml.
|
void |
setAfterHeadersFormat(String value)
After headers format.
|
void |
setBeforeHeadersFormat(String value)
Before headers format.
|
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 |
setDefaultHeaderFormat(String value)
Default header line format.
|
void |
setDefaultPageHeaderFormat(String value)
Default page header format.
|
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.
|
void |
setTimeout(int value)
Limits the time in milliseconds of formatting message while saving in Mht.
|
void |
setTimeoutReachedHandler(TimeoutReachedHandler value)
Raised if timed out while saving to Mhtml.
|
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 TimeoutReachedHandler getTimeoutReachedHandler()
Raised if timed out while saving to Mhtml.
public final void setTimeoutReachedHandler(TimeoutReachedHandler value)
Raised if timed out while saving to Mhtml.
public final int getTimeout()
Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sek.
public final void setTimeout(int value)
Limits the time in milliseconds of formatting message while saving in Mht. Default value 3 sek.
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 String getDefaultPageHeaderFormat()
Default page header format.
Value: The styles to be injected into resulting html body.public final void setDefaultPageHeaderFormat(String value)
Default page header format.
Value: The styles to be injected into resulting html body.public final String getDefaultHeaderFormat()
Default header line format.
Value: The styles to be injected into resulting html body.public final void setDefaultHeaderFormat(String value)
Default header line format.
Value: The styles to be injected into resulting html body.public final String getBeforeHeadersFormat()
Before headers format.
Value: The styles to be injected into resulting html body.public final void setBeforeHeadersFormat(String value)
Before headers format.
Value: The styles to be injected into resulting html body.public final String getAfterHeadersFormat()
After headers format.
Value: The styles to be injected into resulting html body.public final void setAfterHeadersFormat(String value)
After headers format.
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.
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.