# WordRtfExportOptionsFluent

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

Class 

`OfficeIMO.Word.Rtf`

**Namespace**

`OfficeIMO.Word.Rtf`

**Assembly**

`OfficeIMO.Word.Rtf`

**Modifiers**

static

The fluent methods of [WordRtfExportOptions](/api/word-rtf/officeimo-word-rtf-wordrtfexportoptions/), 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
- WordRtfExportOptionsFluent

Filter members 

Show inherited

## Methods

`public static WordRtfExportOptions Encoding(WordRtfExportOptions wordRtfExportOptions, Encoding? value)` [#](#method-encoding-officeimo-word-rtf-wordrtfexportoptions-text-encoding)

Sets [WordRtfExportOptions.Encoding](/api/word-rtf/officeimo-word-rtf-wordrtfexportoptions/): Encoding used when the RTF is saved. Null uses the RTF writer default.

Parameters

**wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required**

The instance.

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

The value.

Returns

`WordRtfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { Encoding = value };    wordRtfExportOptions.Encoding(value);
```

`public static WordRtfExportOptions FailOnLoss(WordRtfExportOptions wordRtfExportOptions, bool value = true)` [#](#method-failonloss-officeimo-word-rtf-wordrtfexportoptions-boolean)

Sets [WordRtfExportOptions.FailOnLoss](/api/word-rtf/officeimo-word-rtf-wordrtfexportoptions/): Throws OfficeConversionException when the conversion reports loss.

Parameters

**wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordRtfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { FailOnLoss = value };    wordRtfExportOptions.FailOnLoss(value);
```

SaveOptions 2 overloads

`public static WordRtfExportOptions SaveOptions(WordRtfExportOptions wordRtfExportOptions, RtfSaveOptions? value)` [#](#method-saveoptions-officeimo-word-rtf-wordrtfexportoptions-officeimo-rtf-rtfsaveoptions)

Sets [WordRtfExportOptions.SaveOptions](/api/word-rtf/officeimo-word-rtf-wordrtfexportoptions/): RTF writer settings used when the converted document is saved.

Parameters

**wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required**

The instance.

**value OfficeIMO.Rtf.RtfSaveOptions? required**

The value.

Returns

`WordRtfExportOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { SaveOptions = value };    wordRtfExportOptions.SaveOptions(value);
```

`public static WordRtfExportOptions SaveOptions(WordRtfExportOptions wordRtfExportOptions, Action<RtfSaveOptions> configure)` [#](#method-saveoptions-officeimo-word-rtf-wordrtfexportoptions-action-officeimo-rtf-rtfsaveoptions)

Configures [WordRtfExportOptions.SaveOptions](/api/word-rtf/officeimo-word-rtf-wordrtfexportoptions/) in place (creating it when not set): RTF writer settings used when the converted document is saved.

Parameters

**wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfSaveOptions> required**

Configures the value.

Returns

`WordRtfExportOptions` 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:AC9B7B07F30C528CC509C035D4AF608530C61D28C8B71E9785105A18F0BD6F82 -->
