# RtfSaveOptionsFluent

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

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfSaveOptions](/api/rtf/officeimo-rtf-rtfsaveoptions/), 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
- RtfSaveOptionsFluent

Filter members 

Show inherited

## Methods

`public static RtfSaveOptions DefaultFontName(RtfSaveOptions rtfSaveOptions, string value)` [#](#method-defaultfontname-officeimo-rtf-rtfsaveoptions-string)

Sets [RtfSaveOptions.DefaultFontName](/api/rtf/officeimo-rtf-rtfsaveoptions/): Default font name used when the document has no fonts.

Parameters

**rtfSaveOptions OfficeIMO.Rtf.RtfSaveOptions required**

The instance.

**value string required**

The value.

Returns

`RtfSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfSaveOptions { DefaultFontName = value };    rtfSaveOptions.DefaultFontName(value);
```

`public static RtfSaveOptions IncludeGenerator(RtfSaveOptions rtfSaveOptions, bool value = true)` [#](#method-includegenerator-officeimo-rtf-rtfsaveoptions-boolean)

Sets [RtfSaveOptions.IncludeGenerator](/api/rtf/officeimo-rtf-rtfsaveoptions/): Whether to emit a generator group from document metadata or the OfficeIMO default.

Parameters

**rtfSaveOptions OfficeIMO.Rtf.RtfSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfSaveOptions { IncludeGenerator = value };    rtfSaveOptions.IncludeGenerator(value);
```

`public static RtfSaveOptions IncludeHtmlEncapsulation(RtfSaveOptions rtfSaveOptions, bool value = true)` [#](#method-includehtmlencapsulation-officeimo-rtf-rtfsaveoptions-boolean)

Sets [RtfSaveOptions.IncludeHtmlEncapsulation](/api/rtf/officeimo-rtf-rtfsaveoptions/): Whether to emit an available Outlook/Exchange HTML encapsulation payload.

Parameters

**rtfSaveOptions OfficeIMO.Rtf.RtfSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Rtf.RtfSaveOptions { IncludeHtmlEncapsulation = value };    rtfSaveOptions.IncludeHtmlEncapsulation(value);
```

`public static RtfSaveOptions MaterializeStyleFormatting(RtfSaveOptions rtfSaveOptions, bool value = true)` [#](#method-materializestyleformatting-officeimo-rtf-rtfsaveoptions-boolean)

Sets [RtfSaveOptions.MaterializeStyleFormatting](/api/rtf/officeimo-rtf-rtfsaveoptions/): Writes effective style formatting as body controls for native readers that require explicit formatting. The source model is unchanged; reopening the output materializes inherited formatting as direct values.

Parameters

**rtfSaveOptions OfficeIMO.Rtf.RtfSaveOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfSaveOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Rtf.RtfSaveOptions { MaterializeStyleFormatting = value };    rtfSaveOptions.MaterializeStyleFormatting(value);
```

## 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:DFB6523298DD1696522E4CABB72C66F9ACDC813FB4531E5B5688A575A4BACFFC -->
