# RtfHtmlExportOptionsFluent

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

Filter members 

Show inherited

## Methods

`public static RtfHtmlExportOptions Configure(RtfHtmlExportOptions rtfHtmlExportOptions, Action<RtfHtmlExportOptions> configure)` [#](#method-configure-officeimo-html-rtfhtmlexportoptions-action-officeimo-html-rtfhtmlexportoptions)

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.RtfHtmlExportOptions> required**

Assignments applied in order.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { ImageSourceResolver = value };    rtfHtmlExportOptions.Configure(configured => configured.ImageSourceResolver = value);
```

DocumentOutput 2 overloads

`public static RtfHtmlExportOptions DocumentOutput(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeHtmlDocumentOptions value)` [#](#method-documentoutput-officeimo-html-rtfhtmlexportoptions-officeimo-html-officehtmldocumentoptions)

Sets [RtfHtmlExportOptions.DocumentOutput](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Composed document-versus-fragment, theme, title, language, style, and newline settings.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value OfficeIMO.Html.OfficeHtmlDocumentOptions required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// 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)` [#](#method-documentoutput-officeimo-html-rtfhtmlexportoptions-action-officeimo-html-officehtmldocumentoptions)

Configures [RtfHtmlExportOptions.DocumentOutput](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/) in place (creating it when not set): Composed document-versus-fragment, theme, title, language, style, and newline settings.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Html.OfficeHtmlDocumentOptions> required**

Configures the value.

Returns

`RtfHtmlExportOptions` The same instance.

`public static RtfHtmlExportOptions EmbedImagesAsDataUri(RtfHtmlExportOptions rtfHtmlExportOptions, bool value = true)` [#](#method-embedimagesasdatauri-officeimo-html-rtfhtmlexportoptions-boolean)

Sets [RtfHtmlExportOptions.EmbedImagesAsDataUri](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Embeds supported images as data URI values. Disabled by default for web-safe output.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { EmbedImagesAsDataUri = value };    rtfHtmlExportOptions.EmbedImagesAsDataUri(value);
```

`public static RtfHtmlExportOptions Encoding(RtfHtmlExportOptions rtfHtmlExportOptions, Encoding? value)` [#](#method-encoding-officeimo-html-rtfhtmlexportoptions-text-encoding)

Sets [RtfHtmlExportOptions.Encoding](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Encoding used when the HTML is saved. Null writes UTF-8 without a byte-order mark.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value System.Text.Encoding? required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Encoding = value };    rtfHtmlExportOptions.Encoding(value);
```

`public static RtfHtmlExportOptions ExportProfile(RtfHtmlExportOptions rtfHtmlExportOptions, RtfHtmlExportProfile value)` [#](#method-exportprofile-officeimo-html-rtfhtmlexportoptions-officeimo-html-rtfhtmlexportprofile)

Sets [RtfHtmlExportOptions.ExportProfile](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Named RTF-to-HTML fidelity contract represented by this export.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value OfficeIMO.Html.RtfHtmlExportProfile required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.FailOnLoss](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Throws OfficeConversionException when the conversion reports loss.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.FragmentOnly](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility alias inverse of OfficeHtmlDocumentOptions.EmitDocumentShell.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.IncludeDefaultStyles](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility alias for OfficeHtmlDocumentOptions.IncludeDefaultStyles.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.IncludeMetadata](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Includes document metadata when a full HTML document is requested.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.IncludeRoundTripMetadata](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { IncludeRoundTripMetadata = value };    rtfHtmlExportOptions.IncludeRoundTripMetadata(value);
```

`public static RtfHtmlExportOptions Language(RtfHtmlExportOptions rtfHtmlExportOptions, string? value)` [#](#method-language-officeimo-html-rtfhtmlexportoptions-string)

Sets [RtfHtmlExportOptions.Language](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Language override for the HTML root. Null preserves the RTF document language.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value string? required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Language = value };    rtfHtmlExportOptions.Language(value);
```

`public static RtfHtmlExportOptions MaxEmbeddedImageBytes(RtfHtmlExportOptions rtfHtmlExportOptions, int value)` [#](#method-maxembeddedimagebytes-officeimo-html-rtfhtmlexportoptions-int32)

Sets [RtfHtmlExportOptions.MaxEmbeddedImageBytes](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Maximum size of one image that may be embedded as a data URI.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value int required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { MaxEmbeddedImageBytes = value };    rtfHtmlExportOptions.MaxEmbeddedImageBytes(value);
```

`public static RtfHtmlExportOptions NewLine(RtfHtmlExportOptions rtfHtmlExportOptions, string value)` [#](#method-newline-officeimo-html-rtfhtmlexportoptions-string)

Sets [RtfHtmlExportOptions.NewLine](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility alias for OfficeHtmlDocumentOptions.NewLine.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value string required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Sets [RtfHtmlExportOptions.PreferEncapsulatedHtml](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { PreferEncapsulatedHtml = value };    rtfHtmlExportOptions.PreferEncapsulatedHtml(value);
```

`public static RtfHtmlExportOptions Profile(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeHtmlConversionProfile value)` [#](#method-profile-officeimo-html-rtfhtmlexportoptions-officeimo-html-officehtmlconversionprofile)

Sets [RtfHtmlExportOptions.Profile](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility bridge to the shared profile catalog. New code should use [RtfHtmlExportOptions.ExportProfile](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/) so only RTF profiles are representable.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value OfficeIMO.Html.OfficeHtmlConversionProfile required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Profile = value };    rtfHtmlExportOptions.Profile(value);
```

`public static RtfHtmlExportOptions Theme(RtfHtmlExportOptions rtfHtmlExportOptions, OfficeVisualThemeKind value)` [#](#method-theme-officeimo-html-rtfhtmlexportoptions-officeimo-drawing-officevisualthemekind)

Sets [RtfHtmlExportOptions.Theme](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility alias for OfficeHtmlDocumentOptions.Theme.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value OfficeIMO.Drawing.OfficeVisualThemeKind required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Theme = value };    rtfHtmlExportOptions.Theme(value);
```

`public static RtfHtmlExportOptions Title(RtfHtmlExportOptions rtfHtmlExportOptions, string? value)` [#](#method-title-officeimo-html-rtfhtmlexportoptions-string)

Sets [RtfHtmlExportOptions.Title](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): Compatibility alias for OfficeHtmlDocumentOptions.Title. When unset, the RTF title is used.

Parameters

**rtfHtmlExportOptions OfficeIMO.Html.RtfHtmlExportOptions required**

The instance.

**value string? required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Html.RtfHtmlExportOptions { Title = value };    rtfHtmlExportOptions.Title(value);
```

UrlPolicy 2 overloads

`public static RtfHtmlExportOptions UrlPolicy(RtfHtmlExportOptions rtfHtmlExportOptions, HtmlUrlPolicy value)` [#](#method-urlpolicy-officeimo-html-rtfhtmlexportoptions-officeimo-html-htmlurlpolicy)

Sets [RtfHtmlExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/): 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 required**

The instance.

**value OfficeIMO.Html.HtmlUrlPolicy required**

The value.

Returns

`RtfHtmlExportOptions` The same instance.

Examples

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

Configures [RtfHtmlExportOptions.UrlPolicy](/api/html-rtf/officeimo-html-rtfhtmlexportoptions/) 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 required**

The instance.

**configure System.Action<OfficeIMO.Html.HtmlUrlPolicy> required**

Configures the value.

Returns

`RtfHtmlExportOptions` 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:F882BD99D8EF8B6FC92C475B0714E605589710E3244C033006BCD09D5FFE240E -->
