# RtfStyleKeyCodeFluent

The fluent methods of RtfStyleKeyCode, 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 [RtfStyleKeyCode](/api/rtf/officeimo-rtf-rtfstylekeycode/), 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
- RtfStyleKeyCodeFluent

Filter members 

Show inherited

## Methods

`public static RtfStyleKeyCode Alt(RtfStyleKeyCode rtfStyleKeyCode, bool value = true)` [#](#method-alt-officeimo-rtf-rtfstylekeycode-boolean)

Sets [RtfStyleKeyCode.Alt](/api/rtf/officeimo-rtf-rtfstylekeycode/): Whether the shortcut includes the ALT modifier.

Parameters

**rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyleKeyCode` The same instance.

Examples

```csharp
// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Alt = value };    rtfStyleKeyCode.Alt(value);
```

`public static RtfStyleKeyCode Control(RtfStyleKeyCode rtfStyleKeyCode, bool value = true)` [#](#method-control-officeimo-rtf-rtfstylekeycode-boolean)

Sets [RtfStyleKeyCode.Control](/api/rtf/officeimo-rtf-rtfstylekeycode/): Whether the shortcut includes the CTRL modifier.

Parameters

**rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyleKeyCode` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Control = value };    rtfStyleKeyCode.Control(value);
```

`public static RtfStyleKeyCode FunctionKey(RtfStyleKeyCode rtfStyleKeyCode, int? value)` [#](#method-functionkey-officeimo-rtf-rtfstylekeycode-nullable-system-int32)

Sets [RtfStyleKeyCode.FunctionKey](/api/rtf/officeimo-rtf-rtfstylekeycode/): Optional function-key number from \fn.

Parameters

**rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required**

The instance.

**value int? required**

The value.

Returns

`RtfStyleKeyCode` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { FunctionKey = value };    rtfStyleKeyCode.FunctionKey(value);
```

`public static RtfStyleKeyCode Key(RtfStyleKeyCode rtfStyleKeyCode, string? value)` [#](#method-key-officeimo-rtf-rtfstylekeycode-string)

Sets [RtfStyleKeyCode.Key](/api/rtf/officeimo-rtf-rtfstylekeycode/): Optional literal key text.

Parameters

**rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required**

The instance.

**value string? required**

The value.

Returns

`RtfStyleKeyCode` The same instance.

Examples

```csharp
// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Key = value };    rtfStyleKeyCode.Key(value);
```

`public static RtfStyleKeyCode Shift(RtfStyleKeyCode rtfStyleKeyCode, bool value = true)` [#](#method-shift-officeimo-rtf-rtfstylekeycode-boolean)

Sets [RtfStyleKeyCode.Shift](/api/rtf/officeimo-rtf-rtfstylekeycode/): Whether the shortcut includes the SHIFT modifier.

Parameters

**rtfStyleKeyCode OfficeIMO.Rtf.RtfStyleKeyCode required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfStyleKeyCode` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfStyleKeyCode { Shift = value };    rtfStyleKeyCode.Shift(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:E2B6CEF7D244FCF1F5F896104D8EDE929C8DFD696BDFFBD6D31DB9A8ADB50703 -->
