# HtmlRtfExportOptionsFluent

The fluent methods of HtmlRtfExportOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html.Rtf`

**Modifiers**

static

The fluent methods of [HtmlRtfExportOptions](/api/html-rtf/officeimo-html-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

Filter members 

Show inherited

## Methods

`public static HtmlRtfExportOptions BaseUri(HtmlRtfExportOptions htmlRtfExportOptions, Uri? value)` [#](#method-baseuri-officeimo-html-htmlrtfexportoptions-uri)

Sets [HtmlRtfExportOptions.BaseUri](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { BaseUri = value };    htmlRtfExportOptions.BaseUri(value);
```

`public static HtmlRtfExportOptions Encoding(HtmlRtfExportOptions htmlRtfExportOptions, Encoding? value)` [#](#method-encoding-officeimo-html-htmlrtfexportoptions-text-encoding)

Sets [HtmlRtfExportOptions.Encoding](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-failonloss-officeimo-html-htmlrtfexportoptions-boolean)

Sets [HtmlRtfExportOptions.FailOnLoss](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-ignoreinsignificantwhitespace-officeimo-html-htmlrtfexportoptions-boolean)

Sets [HtmlRtfExportOptions.IgnoreInsignificantWhitespace](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-importeditablelayoutregions-officeimo-html-htmlrtfexportoptions-boolean)

Sets [HtmlRtfExportOptions.ImportEditableLayoutRegions](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { ImportEditableLayoutRegions = value };    htmlRtfExportOptions.ImportEditableLayoutRegions(value);
```

`public static HtmlRtfExportOptions MaxHtmlDepth(HtmlRtfExportOptions htmlRtfExportOptions, int? value)` [#](#method-maxhtmldepth-officeimo-html-htmlrtfexportoptions-nullable-system-int32)

Sets [HtmlRtfExportOptions.MaxHtmlDepth](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): Optional maximum parsed HTML element nesting depth allowed for a conversion operation. When exceeded, conversion stops with [HtmlRtfConversionLimitException](/api/html-rtf/officeimo-html-htmlrtfconversionlimitexception/) and an error diagnostic.

Parameters

**htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required**

The instance.

**value int? required**

The value.

Returns

`HtmlRtfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Html.HtmlRtfExportOptions { MaxHtmlDepth = value };    htmlRtfExportOptions.MaxHtmlDepth(value);
```

`public static HtmlRtfExportOptions MaxHtmlNodes(HtmlRtfExportOptions htmlRtfExportOptions, int? value)` [#](#method-maxhtmlnodes-officeimo-html-htmlrtfexportoptions-nullable-system-int32)

Sets [HtmlRtfExportOptions.MaxHtmlNodes](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): Optional maximum number of parsed HTML element and text nodes allowed for a conversion operation. When exceeded, conversion stops with [HtmlRtfConversionLimitException](/api/html-rtf/officeimo-html-htmlrtfconversionlimitexception/) and an error diagnostic.

Parameters

**htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required**

The instance.

**value int? required**

The value.

Returns

`HtmlRtfExportOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-preserveunknowntagsastext-officeimo-html-htmlrtfexportoptions-boolean)

Sets [HtmlRtfExportOptions.PreserveUnknownTagsAsText](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-resourceurlpolicy-officeimo-html-htmlrtfexportoptions-officeimo-html-htmlurlpolicy)

Sets [HtmlRtfExportOptions.ResourceUrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): Optional separate policy for image sources. When omitted, [HtmlRtfExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/) is used.

Parameters

**htmlRtfExportOptions OfficeIMO.Html.HtmlRtfExportOptions required**

The instance.

**value OfficeIMO.Html.HtmlUrlPolicy? required**

The value.

Returns

`HtmlRtfExportOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-resourceurlpolicy-officeimo-html-htmlrtfexportoptions-action-officeimo-html-htmlurlpolicy)

Configures [HtmlRtfExportOptions.ResourceUrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/) in place (creating it when not set): Optional separate policy for image sources. When omitted, [HtmlRtfExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/) 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)` [#](#method-saveoptions-officeimo-html-htmlrtfexportoptions-officeimo-rtf-rtfsaveoptions)

Sets [HtmlRtfExportOptions.SaveOptions](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-saveoptions-officeimo-html-htmlrtfexportoptions-action-officeimo-rtf-rtfsaveoptions)

Configures [HtmlRtfExportOptions.SaveOptions](/api/html-rtf/officeimo-html-htmlrtfexportoptions/) 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)` [#](#method-urlpolicy-officeimo-html-htmlrtfexportoptions-officeimo-html-htmlurlpolicy)

Sets [HtmlRtfExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/): 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

```csharp
// 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)` [#](#method-urlpolicy-officeimo-html-htmlrtfexportoptions-action-officeimo-html-htmlurlpolicy)

Configures [HtmlRtfExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-htmlrtfexportoptions/) 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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:B0A27969C4D19F636E0AEF94A9EE41F8B597B5331D218130B04BDCAD23C96704 -->
