# RtfFontEmbeddingFluent

The fluent methods of RtfFontEmbedding, 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 [RtfFontEmbedding](/api/rtf/officeimo-rtf-rtffontembedding/), 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
- RtfFontEmbeddingFluent

Filter members 

Show inherited

## Methods

`public static RtfFontEmbedding Data(RtfFontEmbedding rtfFontEmbedding, byte[] value)` [#](#method-data-officeimo-rtf-rtffontembedding-byte)

Sets [RtfFontEmbedding.Data](/api/rtf/officeimo-rtf-rtffontembedding/): Embedded font payload bytes.

Parameters

**rtfFontEmbedding OfficeIMO.Rtf.RtfFontEmbedding required**

The instance.

**value byte[] required**

The value.

Returns

`RtfFontEmbedding` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfFontEmbedding { Data = value };    rtfFontEmbedding.Data(value);
```

`public static RtfFontEmbedding FileCodePage(RtfFontEmbedding rtfFontEmbedding, int? value)` [#](#method-filecodepage-officeimo-rtf-rtffontembedding-nullable-system-int32)

Sets [RtfFontEmbedding.FileCodePage](/api/rtf/officeimo-rtf-rtffontembedding/): Optional file name code page from \cpg inside \fontfile.

Parameters

**rtfFontEmbedding OfficeIMO.Rtf.RtfFontEmbedding required**

The instance.

**value int? required**

The value.

Returns

`RtfFontEmbedding` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfFontEmbedding { FileCodePage = value };    rtfFontEmbedding.FileCodePage(value);
```

`public static RtfFontEmbedding FileName(RtfFontEmbedding rtfFontEmbedding, string? value)` [#](#method-filename-officeimo-rtf-rtffontembedding-string)

Sets [RtfFontEmbedding.FileName](/api/rtf/officeimo-rtf-rtffontembedding/): Optional file name from the {\*\fontfile ...} destination.

Parameters

**rtfFontEmbedding OfficeIMO.Rtf.RtfFontEmbedding required**

The instance.

**value string? required**

The value.

Returns

`RtfFontEmbedding` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Rtf.RtfFontEmbedding { FileName = value };    rtfFontEmbedding.FileName(value);
```

`public static RtfFontEmbedding Type(RtfFontEmbedding rtfFontEmbedding, RtfEmbeddedFontType value)` [#](#method-type-officeimo-rtf-rtffontembedding-officeimo-rtf-rtfembeddedfonttype)

Sets [RtfFontEmbedding.Type](/api/rtf/officeimo-rtf-rtffontembedding/): Embedded font type.

Parameters

**rtfFontEmbedding OfficeIMO.Rtf.RtfFontEmbedding required**

The instance.

**value OfficeIMO.Rtf.RtfEmbeddedFontType required**

The value.

Returns

`RtfFontEmbedding` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfFontEmbedding { Type = value };    rtfFontEmbedding.Type(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:9BC488971FB64C4CF1B9EE959E93B5F562197BB71BB0841D3252670BF97A40B5 -->
