# RtfFontFluent

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

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfFont](/api/rtf/officeimo-rtf-rtffont/), 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
- RtfFontFluent

Filter members 

Show inherited

## Methods

`public static RtfFont AlternateName(RtfFont rtfFont, string? value)` [#](#method-alternatename-officeimo-rtf-rtffont-string)

Sets [RtfFont.AlternateName](/api/rtf/officeimo-rtf-rtffont/): Optional alternate font name from the {\*\falt ...} destination.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value string? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfFont.AlternateName = value;    rtfFont.AlternateName(value);
```

`public static RtfFont Bias(RtfFont rtfFont, int? value)` [#](#method-bias-officeimo-rtf-rtffont-nullable-system-int32)

Sets [RtfFont.Bias](/api/rtf/officeimo-rtf-rtffont/): Optional font bias from \fbias.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value int? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Bias = value;            rtfFont.Bias(value);
```

`public static RtfFont Charset(RtfFont rtfFont, int? value)` [#](#method-charset-officeimo-rtf-rtffont-nullable-system-int32)

Sets [RtfFont.Charset](/api/rtf/officeimo-rtf-rtffont/): Optional character set from \fcharset.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value int? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Charset = value;         rtfFont.Charset(value);
```

`public static RtfFont CodePage(RtfFont rtfFont, int? value)` [#](#method-codepage-officeimo-rtf-rtffont-nullable-system-int32)

Sets [RtfFont.CodePage](/api/rtf/officeimo-rtf-rtffont/): Optional code page from \cpg.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value int? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.CodePage = value;        rtfFont.CodePage(value);
```

Embedding 2 overloads

`public static RtfFont Embedding(RtfFont rtfFont, RtfFontEmbedding? value)` [#](#method-embedding-officeimo-rtf-rtffont-officeimo-rtf-rtffontembedding)

Sets [RtfFont.Embedding](/api/rtf/officeimo-rtf-rtffont/): Optional embedded font metadata from the {\*\fontemb ...} destination.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value OfficeIMO.Rtf.RtfFontEmbedding? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Embedding = value;       rtfFont.Embedding(value);
```

`public static RtfFont Embedding(RtfFont rtfFont, Action<RtfFontEmbedding> configure)` [#](#method-embedding-officeimo-rtf-rtffont-action-officeimo-rtf-rtffontembedding)

Configures [RtfFont.Embedding](/api/rtf/officeimo-rtf-rtffont/) in place (creating it when not set): Optional embedded font metadata from the {\*\fontemb ...} destination.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

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

Configures the value.

Returns

`RtfFont` The same instance.

`public static RtfFont Family(RtfFont rtfFont, RtfFontFamily? value)` [#](#method-family-officeimo-rtf-rtffont-nullable-officeimo-rtf-rtffontfamily)

Sets [RtfFont.Family](/api/rtf/officeimo-rtf-rtffont/): Optional RTF font family classification.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value OfficeIMO.Rtf.RtfFontFamily? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Family = value;          rtfFont.Family(value);
```

`public static RtfFont NonTaggedName(RtfFont rtfFont, string? value)` [#](#method-nontaggedname-officeimo-rtf-rtffont-string)

Sets [RtfFont.NonTaggedName](/api/rtf/officeimo-rtf-rtffont/): Optional non-tagged font name from the {\*\fname ...} destination.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value string? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfFont.NonTaggedName = value;    rtfFont.NonTaggedName(value);
```

`public static RtfFont Panose(RtfFont rtfFont, string? value)` [#](#method-panose-officeimo-rtf-rtffont-string)

Sets [RtfFont.Panose](/api/rtf/officeimo-rtf-rtffont/): Optional raw PANOSE classification from the {\*\panose ...} destination.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value string? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Panose = value;          rtfFont.Panose(value);
```

`public static RtfFont Pitch(RtfFont rtfFont, int? value)` [#](#method-pitch-officeimo-rtf-rtffont-nullable-system-int32)

Sets [RtfFont.Pitch](/api/rtf/officeimo-rtf-rtffont/): Optional pitch request from \fprq.

Parameters

**rtfFont OfficeIMO.Rtf.RtfFont required**

The instance.

**value int? required**

The value.

Returns

`RtfFont` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfFont.Pitch = value;           rtfFont.Pitch(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:2C8EDA80950E80CF1A3FE4A7619FBE93EB1191E9A4ACCE1D04C4DA540E93B280 -->
