Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlRtfExportOptionsFluent

OfficeIMO.Html

Namespace
OfficeIMO.Html
Assembly
OfficeIMO.Html.Rtf
Modifiers
static

The fluent methods of HtmlRtfExportOptions, 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
  • HtmlRtfExportOptionsFluent

Methods

public static HtmlRtfExportOptions BaseUri(HtmlRtfExportOptions htmlRtfExportOptions, Uri? value) #

Sets HtmlRtfExportOptions.BaseUri: Base URI used to resolve relative hyperlinks and image sources.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value System.Uri? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { BaseUri = value };    htmlRtfExportOptions.BaseUri(value);
public static HtmlRtfExportOptions Encoding(HtmlRtfExportOptions htmlRtfExportOptions, Encoding? value) #

Sets HtmlRtfExportOptions.Encoding: Encoding used when the RTF is saved. Null uses the RTF writer default.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value System.Text.Encoding? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { Encoding = value };    htmlRtfExportOptions.Encoding(value);
public static HtmlRtfExportOptions FailOnLoss(HtmlRtfExportOptions htmlRtfExportOptions, bool value = true) #

Sets HtmlRtfExportOptions.FailOnLoss: Throws OfficeConversionException when the conversion reports loss.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { FailOnLoss = value };    htmlRtfExportOptions.FailOnLoss(value);
public static HtmlRtfExportOptions IgnoreInsignificantWhitespace(HtmlRtfExportOptions htmlRtfExportOptions, bool value = true) #

Sets HtmlRtfExportOptions.IgnoreInsignificantWhitespace: When enabled, text nodes made only of whitespace are ignored outside preformatted elements.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { IgnoreInsignificantWhitespace = value };    htmlRtfExportOptions.IgnoreInsignificantWhitespace(value);
public static HtmlRtfExportOptions ImportEditableLayoutRegions(HtmlRtfExportOptions htmlRtfExportOptions, bool value = true) #

Sets HtmlRtfExportOptions.ImportEditableLayoutRegions: When true, bounded positioned and floating HTML regions are retained as editable native RTF paragraph frames.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { ImportEditableLayoutRegions = value };    htmlRtfExportOptions.ImportEditableLayoutRegions(value);
public static HtmlRtfExportOptions MaxHtmlDepth(HtmlRtfExportOptions htmlRtfExportOptions, int? value) #

Sets HtmlRtfExportOptions.MaxHtmlDepth: Optional maximum parsed HTML element nesting depth allowed for a conversion operation. When exceeded, conversion stops with HtmlRtfConversionLimitException and an error diagnostic.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value int? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { MaxHtmlDepth = value };    htmlRtfExportOptions.MaxHtmlDepth(value);
public static HtmlRtfExportOptions MaxHtmlNodes(HtmlRtfExportOptions htmlRtfExportOptions, int? value) #

Sets HtmlRtfExportOptions.MaxHtmlNodes: Optional maximum number of parsed HTML element and text nodes allowed for a conversion operation. When exceeded, conversion stops with HtmlRtfConversionLimitException and an error diagnostic.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value int? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { MaxHtmlNodes = value };    htmlRtfExportOptions.MaxHtmlNodes(value);
public static HtmlRtfExportOptions PreserveUnknownTagsAsText(HtmlRtfExportOptions htmlRtfExportOptions, bool value = true) #

Sets HtmlRtfExportOptions.PreserveUnknownTagsAsText: Preserves unknown element names as bracketed text markers instead of treating them as transparent containers.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { PreserveUnknownTagsAsText = value };    htmlRtfExportOptions.PreserveUnknownTagsAsText(value);
ResourceUrlPolicy 2 overloads
public static HtmlRtfExportOptions ResourceUrlPolicy(HtmlRtfExportOptions htmlRtfExportOptions, HtmlUrlPolicy? value) #

Sets HtmlRtfExportOptions.ResourceUrlPolicy: Optional separate policy for image sources. When omitted, HtmlRtfExportOptions.UrlPolicy is used.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value OfficeIMO.Html.HtmlUrlPolicy? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { ResourceUrlPolicy = value };    htmlRtfExportOptions.ResourceUrlPolicy(value);
public static HtmlRtfExportOptions ResourceUrlPolicy(HtmlRtfExportOptions htmlRtfExportOptions, Action<HtmlUrlPolicy> configure) #

Configures HtmlRtfExportOptions.ResourceUrlPolicy in place (creating it when not set): Optional separate policy for image sources. When omitted, HtmlRtfExportOptions.UrlPolicy is used.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
configure System.Action<OfficeIMO.Html.HtmlUrlPolicy> required
Configures the value.

Returns

HtmlRtfExportOptions The same instance.
SaveOptions 2 overloads
public static HtmlRtfExportOptions SaveOptions(HtmlRtfExportOptions htmlRtfExportOptions, RtfSaveOptions? value) #

Sets HtmlRtfExportOptions.SaveOptions: RTF writer settings used when the converted document is saved.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value OfficeIMO.Rtf.RtfSaveOptions? required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { SaveOptions = value };    htmlRtfExportOptions.SaveOptions(value);
public static HtmlRtfExportOptions SaveOptions(HtmlRtfExportOptions htmlRtfExportOptions, Action<RtfSaveOptions> configure) #

Configures HtmlRtfExportOptions.SaveOptions in place (creating it when not set): RTF writer settings used when the converted document is saved.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfSaveOptions> required
Configures the value.

Returns

HtmlRtfExportOptions The same instance.
UrlPolicy 2 overloads
public static HtmlRtfExportOptions UrlPolicy(HtmlRtfExportOptions htmlRtfExportOptions, HtmlUrlPolicy value) #

Sets HtmlRtfExportOptions.UrlPolicy: URL policy used before hyperlinks are materialized into RTF content.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
value OfficeIMO.Html.HtmlUrlPolicy required
The value.

Returns

HtmlRtfExportOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { UrlPolicy = value };    htmlRtfExportOptions.UrlPolicy(value);
public static HtmlRtfExportOptions UrlPolicy(HtmlRtfExportOptions htmlRtfExportOptions, Action<HtmlUrlPolicy> configure) #

Configures HtmlRtfExportOptions.UrlPolicy in place (creating it when not set): URL policy used before hyperlinks are materialized into RTF content.

Parameters

htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required
The instance.
configure System.Action<OfficeIMO.Html.HtmlUrlPolicy> required
Configures the value.

Returns

HtmlRtfExportOptions The same instance.