RtfHtmlExportOptionsFluent
OfficeIMO.Html
The fluent methods of RtfHtmlExportOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- RtfHtmlExportOptionsFluent
Methods
public static RtfHtmlExportOptions Configure(RtfHtmlExportOptions rtfHtmlExportOptions, Action<RtfHtmlExportOptions> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- configure System.Action<OfficeIMO.Html.RtfHtmlExportOptions>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { ImageSourceResolver = value }; rtfHtmlExportOptions.Configure(configured => configured.ImageSourceResolver = value);public static RtfHtmlExportOptions DocumentOutput(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeHtmlDocumentOptions value) #Sets RtfHtmlExportOptions.DocumentOutput: Composed document-versus-fragment, theme, title, language, style, and newline settings.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value OfficeIMO.Html.OfficeHtmlDocumentOptions
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { DocumentOutput = value }; rtfHtmlExportOptions.DocumentOutput(value);public static RtfHtmlExportOptions DocumentOutput(RtfHtmlExportOptions rtfHtmlExportOptions, Action<OfficeHtmlDocumentOptions> configure) #Configures RtfHtmlExportOptions.DocumentOutput in place (creating it when not set): Composed document-versus-fragment, theme, title, language, style, and newline settings.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- configure System.Action<OfficeIMO.Html.OfficeHtmlDocumentOptions>
- Configures the value.
public static RtfHtmlExportOptions EmbedImagesAsDataUri(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.EmbedImagesAsDataUri: Embeds supported images as data URI values. Disabled by default for web-safe output.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { EmbedImagesAsDataUri = value }; rtfHtmlExportOptions.EmbedImagesAsDataUri(value);public static RtfHtmlExportOptions Encoding(RtfHtmlExportOptions rtfHtmlExportOptions, Encoding? value) #Sets RtfHtmlExportOptions.Encoding: Encoding used when the HTML is saved. Null writes UTF-8 without a byte-order mark.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value System.Text.Encoding?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Encoding = value }; rtfHtmlExportOptions.Encoding(value);public static RtfHtmlExportOptions ExportProfile(RtfHtmlExportOptions rtfHtmlExportOptions, RtfHtmlExportProfile value) #Sets RtfHtmlExportOptions.ExportProfile: Named RTF-to-HTML fidelity contract represented by this export.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value OfficeIMO.Html.RtfHtmlExportProfile
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { ExportProfile = value }; rtfHtmlExportOptions.ExportProfile(value);public static RtfHtmlExportOptions FailOnLoss(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.FailOnLoss: Throws OfficeConversionException when the conversion reports loss.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { FailOnLoss = value }; rtfHtmlExportOptions.FailOnLoss(value);public static RtfHtmlExportOptions FragmentOnly(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.FragmentOnly: Compatibility alias inverse of OfficeHtmlDocumentOptions.EmitDocumentShell.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { FragmentOnly = value }; rtfHtmlExportOptions.FragmentOnly(value);public static RtfHtmlExportOptions IncludeDefaultStyles(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.IncludeDefaultStyles: Compatibility alias for OfficeHtmlDocumentOptions.IncludeDefaultStyles.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { IncludeDefaultStyles = value }; rtfHtmlExportOptions.IncludeDefaultStyles(value);public static RtfHtmlExportOptions IncludeMetadata(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.IncludeMetadata: Includes document metadata when a full HTML document is requested.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { IncludeMetadata = value }; rtfHtmlExportOptions.IncludeMetadata(value);public static RtfHtmlExportOptions IncludeRoundTripMetadata(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.IncludeRoundTripMetadata: Includes private data-officeimo-rtf-* metadata used for trusted fidelity round trips. This can include encoded object and image payloads and is disabled by default.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { IncludeRoundTripMetadata = value }; rtfHtmlExportOptions.IncludeRoundTripMetadata(value);public static RtfHtmlExportOptions Language(RtfHtmlExportOptions rtfHtmlExportOptions, string? value) #Sets RtfHtmlExportOptions.Language: Language override for the HTML root. Null preserves the RTF document language.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Language = value }; rtfHtmlExportOptions.Language(value);public static RtfHtmlExportOptions MaxEmbeddedImageBytes(RtfHtmlExportOptions rtfHtmlExportOptions, int value) #Sets RtfHtmlExportOptions.MaxEmbeddedImageBytes: Maximum size of one image that may be embedded as a data URI.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { MaxEmbeddedImageBytes = value }; rtfHtmlExportOptions.MaxEmbeddedImageBytes(value);public static RtfHtmlExportOptions NewLine(RtfHtmlExportOptions rtfHtmlExportOptions, string value) #Sets RtfHtmlExportOptions.NewLine: Compatibility alias for OfficeHtmlDocumentOptions.NewLine.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { NewLine = value }; rtfHtmlExportOptions.NewLine(value);public static RtfHtmlExportOptions PreferEncapsulatedHtml(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true) #Sets RtfHtmlExportOptions.PreferEncapsulatedHtml: Prefers Outlook/Exchange HTML encapsulated in the RTF transport over its plain-text fallback. The encapsulated HTML is always reparsed through the bounded HTML reader and current URL policy.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { PreferEncapsulatedHtml = value }; rtfHtmlExportOptions.PreferEncapsulatedHtml(value);public static RtfHtmlExportOptions Profile(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeHtmlConversionProfile value) #Sets RtfHtmlExportOptions.Profile: Compatibility bridge to the shared profile catalog. New code should use RtfHtmlExportOptions.ExportProfile so only RTF profiles are representable.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value OfficeIMO.Html.OfficeHtmlConversionProfile
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Profile = value }; rtfHtmlExportOptions.Profile(value);public static RtfHtmlExportOptions Theme(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeVisualThemeKind value) #Sets RtfHtmlExportOptions.Theme: Compatibility alias for OfficeHtmlDocumentOptions.Theme.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value OfficeIMO.Drawing.OfficeVisualThemeKind
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Theme = value }; rtfHtmlExportOptions.Theme(value);public static RtfHtmlExportOptions Title(RtfHtmlExportOptions rtfHtmlExportOptions, string? value) #Sets RtfHtmlExportOptions.Title: Compatibility alias for OfficeHtmlDocumentOptions.Title. When unset, the RTF title is used.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Title = value }; rtfHtmlExportOptions.Title(value);public static RtfHtmlExportOptions UrlPolicy(RtfHtmlExportOptions rtfHtmlExportOptions, HtmlUrlPolicy value) #Sets RtfHtmlExportOptions.UrlPolicy: URL policy applied to every hyperlink and caller-supplied image source written to HTML. The default is the restrictive web-only policy.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- value OfficeIMO.Html.HtmlUrlPolicy
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { UrlPolicy = value }; rtfHtmlExportOptions.UrlPolicy(value);public static RtfHtmlExportOptions UrlPolicy(RtfHtmlExportOptions rtfHtmlExportOptions, Action<HtmlUrlPolicy> configure) #Configures RtfHtmlExportOptions.UrlPolicy in place (creating it when not set): URL policy applied to every hyperlink and caller-supplied image source written to HTML. The default is the restrictive web-only policy.
Parameters
- rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions
- The instance.
- configure System.Action<OfficeIMO.Html.HtmlUrlPolicy>
- Configures the value.