# RtfRunFluent

The fluent methods of RtfRun, 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 [RtfRun](/api/rtf/officeimo-rtf-rtfrun/), 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
- RtfRunFluent

Filter members 

Show inherited

## Methods

`public static RtfRun Baseline(RtfRun rtfRun)` [#](#method-baseline-officeimo-rtf-rtfrun)

Resets the run to normal baseline text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

Returns

`RtfRun` The same instance.

`public static RtfRun Bold(RtfRun rtfRun, bool value = true)` [#](#method-bold-officeimo-rtf-rtfrun-boolean)

Enables bold formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CapsStyle(RtfRun rtfRun, RtfCapsStyle capsStyle)` [#](#method-capsstyle-officeimo-rtf-rtfrun-officeimo-rtf-rtfcapsstyle)

Sets the run capitalization effect.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**capsStyle OfficeIMO.Rtf.RtfCapsStyle required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterBackgroundColor(RtfRun rtfRun, int? colorIndex)` [#](#method-characterbackgroundcolor-officeimo-rtf-rtfrun-nullable-system-int32)

Sets character background shading to a one-based color table index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**colorIndex int? required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterBackgroundColorIndex(RtfRun rtfRun, int? value)` [#](#method-characterbackgroundcolorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterBackgroundColorIndex](/api/rtf/officeimo-rtf-rtfrun/): One-based color table index used by character background shading.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
rtfRun.CharacterBackgroundColorIndex = value;    rtfRun.CharacterBackgroundColorIndex(value);
```

CharacterBorder 2 overloads

`public static RtfRun CharacterBorder(RtfRun rtfRun, RtfParagraphBorderStyle style, int? width = null, int? colorIndex = null)` [#](#method-characterborder-officeimo-rtf-rtfrun-officeimo-rtf-rtfparagraphborderstyle-nullable-system-int32-nullable-system-int32)

Sets the character border formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**style OfficeIMO.Rtf.RtfParagraphBorderStyle required**

The value.

**width int? = null optional**

The value.

**colorIndex int? = null optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterBorder(RtfRun rtfRun, Action<RtfCharacterBorder> configure)` [#](#method-characterborder-officeimo-rtf-rtfrun-action-officeimo-rtf-rtfcharacterborder)

Configures [RtfRun.CharacterBorder](/api/rtf/officeimo-rtf-rtfrun/) in place: Character border metadata represented by \chbrdr and following border controls.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

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

Configures the value.

Returns

`RtfRun` The same instance.

CharacterOffsetHalfPoints 2 overloads

`public static RtfRun CharacterOffsetHalfPoints(RtfRun rtfRun, int halfPoints)` [#](#method-characteroffsethalfpoints-officeimo-rtf-rtfrun-int32)

Sets signed baseline offset in half-points.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**halfPoints int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterOffsetHalfPoints(RtfRun rtfRun, int? value)` [#](#method-characteroffsethalfpoints-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterOffsetHalfPoints](/api/rtf/officeimo-rtf-rtfrun/): Optional signed baseline offset in half-points. Positive values raise text and negative values lower it.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
rtfRun.CharacterOffsetHalfPoints = value;    rtfRun.CharacterOffsetHalfPoints(value);
```

`public static RtfRun CharacterRevisionSaveId(RtfRun rtfRun, int? value)` [#](#method-characterrevisionsaveid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterRevisionSaveId](/api/rtf/officeimo-rtf-rtfrun/): Character revision save identifier represented by \charrsid.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
rtfRun.CharacterRevisionSaveId = value;    rtfRun.CharacterRevisionSaveId(value);
```

`public static RtfRun CharacterScale(RtfRun rtfRun, int percent)` [#](#method-characterscale-officeimo-rtf-rtfrun-int32)

Sets character scale percentage.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**percent int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterScalePercent(RtfRun rtfRun, int? value)` [#](#method-characterscalepercent-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterScalePercent](/api/rtf/officeimo-rtf-rtfrun/): Optional character scale percentage. A null value uses the document default of 100 percent.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
rtfRun.CharacterScalePercent = value;    rtfRun.CharacterScalePercent(value);
```

`public static RtfRun CharacterShading(RtfRun rtfRun, int? backgroundColorIndex, int? foregroundColorIndex = null, int? patternPercent = null, RtfShadingPattern pattern = None)` [#](#method-charactershading-officeimo-rtf-rtfrun-nullable-system-int32-nullable-system-int32-nullable-system-int32-officeimo-rtf-rtfshadingpattern)

Sets character shading color and pattern metadata.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**backgroundColorIndex int? required**

The value.

**foregroundColorIndex int? = null optional**

The value.

**patternPercent int? = null optional**

The value.

**pattern OfficeIMO.Rtf.RtfShadingPattern = None optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterShadingForegroundColorIndex(RtfRun rtfRun, int? value)` [#](#method-charactershadingforegroundcolorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterShadingForegroundColorIndex](/api/rtf/officeimo-rtf-rtfrun/): One-based color table index used by character pattern foreground shading.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property                           // C# fluent
rtfRun.CharacterShadingForegroundColorIndex = value;    rtfRun.CharacterShadingForegroundColorIndex(value);
```

`public static RtfRun CharacterShadingPattern(RtfRun rtfRun, RtfShadingPattern value)` [#](#method-charactershadingpattern-officeimo-rtf-rtfrun-officeimo-rtf-rtfshadingpattern)

Sets [RtfRun.CharacterShadingPattern](/api/rtf/officeimo-rtf-rtfrun/): Named RTF character shading pattern.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value OfficeIMO.Rtf.RtfShadingPattern required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
rtfRun.CharacterShadingPattern = value;    rtfRun.CharacterShadingPattern(value);
```

`public static RtfRun CharacterShadingPatternPercent(RtfRun rtfRun, int? value)` [#](#method-charactershadingpatternpercent-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterShadingPatternPercent](/api/rtf/officeimo-rtf-rtfrun/): Raw RTF \chshdng value, where 10000 represents 100 percent.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property                     // C# fluent
rtfRun.CharacterShadingPatternPercent = value;    rtfRun.CharacterShadingPatternPercent(value);
```

CharacterSpacingTwips 2 overloads

`public static RtfRun CharacterSpacingTwips(RtfRun rtfRun, int spacingTwips)` [#](#method-characterspacingtwips-officeimo-rtf-rtfrun-int32)

Sets character spacing in twips.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**spacingTwips int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun CharacterSpacingTwips(RtfRun rtfRun, int? value)` [#](#method-characterspacingtwips-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.CharacterSpacingTwips](/api/rtf/officeimo-rtf-rtfrun/): Optional character spacing in twips. Positive values expand text and negative values condense it.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
rtfRun.CharacterSpacingTwips = value;    rtfRun.CharacterSpacingTwips(value);
```

`public static RtfRun DeletedRevision(RtfRun rtfRun, int? authorIndex = null, int? timestampValue = null)` [#](#method-deletedrevision-officeimo-rtf-rtfrun-nullable-system-int32-nullable-system-int32)

Marks the run as tracked deleted text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**authorIndex int? = null optional**

The value.

**timestampValue int? = null optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun DeletionRevisionSaveId(RtfRun rtfRun, int? value)` [#](#method-deletionrevisionsaveid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.DeletionRevisionSaveId](/api/rtf/officeimo-rtf-rtfrun/): Deletion revision save identifier represented by \delrsid.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
rtfRun.DeletionRevisionSaveId = value;    rtfRun.DeletionRevisionSaveId(value);
```

`public static RtfRun DirectBold(RtfRun rtfRun, bool? value = true)` [#](#method-directbold-officeimo-rtf-rtfrun-nullable-system-boolean)

Sets [RtfRun.DirectBold](/api/rtf/officeimo-rtf-rtfrun/): Authored Bold override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.DirectBold = value;       rtfRun.DirectBold(value);
```

`public static RtfRun DirectHidden(RtfRun rtfRun, bool? value = true)` [#](#method-directhidden-officeimo-rtf-rtfrun-nullable-system-boolean)

Sets [RtfRun.DirectHidden](/api/rtf/officeimo-rtf-rtfrun/): Authored hidden-text override. Null inherits; false makes text visible beneath a hidden-text style.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.DirectHidden = value;     rtfRun.DirectHidden(value);
```

`public static RtfRun Direction(RtfRun rtfRun, RtfTextDirection? direction)` [#](#method-direction-officeimo-rtf-rtfrun-nullable-officeimo-rtf-rtftextdirection)

Sets explicit run text direction.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**direction OfficeIMO.Rtf.RtfTextDirection? required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun DirectItalic(RtfRun rtfRun, bool? value = true)` [#](#method-directitalic-officeimo-rtf-rtfrun-nullable-system-boolean)

Sets [RtfRun.DirectItalic](/api/rtf/officeimo-rtf-rtfrun/): Authored Italic override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.DirectItalic = value;     rtfRun.DirectItalic(value);
```

`public static RtfRun DirectUnderlineStyle(RtfRun rtfRun, RtfUnderlineStyle? value)` [#](#method-directunderlinestyle-officeimo-rtf-rtfrun-nullable-officeimo-rtf-rtfunderlinestyle)

Sets [RtfRun.DirectUnderlineStyle](/api/rtf/officeimo-rtf-rtfrun/): Authored UnderlineStyle override. Null inherits from the selected style; an explicit default clears that style value.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value OfficeIMO.Rtf.RtfUnderlineStyle? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
rtfRun.DirectUnderlineStyle = value;    rtfRun.DirectUnderlineStyle(value);
```

`public static RtfRun DoubleStrikethrough(RtfRun rtfRun, bool value = true)` [#](#method-doublestrikethrough-officeimo-rtf-rtfrun-boolean)

Enables double strike-through formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Emboss(RtfRun rtfRun, bool value = true)` [#](#method-emboss-officeimo-rtf-rtfrun-boolean)

Enables embossed text formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun FontId(RtfRun rtfRun, int? value)` [#](#method-fontid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.FontId](/api/rtf/officeimo-rtf-rtfrun/): Optional font id.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.FontId = value;           rtfRun.FontId(value);
```

FontSize 2 overloads

`public static RtfRun FontSize(RtfRun rtfRun, double points)` [#](#method-fontsize-officeimo-rtf-rtfrun-double)

Sets the run font size in points.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**points double required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun FontSize(RtfRun rtfRun, double? value)` [#](#method-fontsize-officeimo-rtf-rtfrun-nullable-system-double)

Sets [RtfRun.FontSize](/api/rtf/officeimo-rtf-rtfrun/): Optional font size in points.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value double? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.FontSize = value;         rtfRun.FontSize(value);
```

`public static RtfRun ForegroundColor(RtfRun rtfRun, int colorIndex)` [#](#method-foregroundcolor-officeimo-rtf-rtfrun-int32)

Sets the foreground color table index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**colorIndex int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun ForegroundColorIndex(RtfRun rtfRun, int? value)` [#](#method-foregroundcolorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.ForegroundColorIndex](/api/rtf/officeimo-rtf-rtfrun/): Optional foreground color index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
rtfRun.ForegroundColorIndex = value;    rtfRun.ForegroundColorIndex(value);
```

`public static RtfRun Hidden(RtfRun rtfRun, bool value = true)` [#](#method-hidden-officeimo-rtf-rtfrun-boolean)

Enables hidden text formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun HighlightColor(RtfRun rtfRun, int colorIndex)` [#](#method-highlightcolor-officeimo-rtf-rtfrun-int32)

Sets the highlight color table index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**colorIndex int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun HighlightColorIndex(RtfRun rtfRun, int? value)` [#](#method-highlightcolorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.HighlightColorIndex](/api/rtf/officeimo-rtf-rtfrun/): Optional background highlight color index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfRun.HighlightColorIndex = value;    rtfRun.HighlightColorIndex(value);
```

`public static RtfRun Hyperlink(RtfRun rtfRun, Uri uri)` [#](#method-hyperlink-officeimo-rtf-rtfrun-uri)

Marks the run as a hyperlink.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**uri System.Uri required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Imprint(RtfRun rtfRun, bool value = true)` [#](#method-imprint-officeimo-rtf-rtfrun-boolean)

Enables engraved/imprinted text formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun InsertedRevision(RtfRun rtfRun, int? authorIndex = null, int? timestampValue = null)` [#](#method-insertedrevision-officeimo-rtf-rtfrun-nullable-system-int32-nullable-system-int32)

Marks the run as tracked inserted text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**authorIndex int? = null optional**

The value.

**timestampValue int? = null optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun InsertionRevisionSaveId(RtfRun rtfRun, int? value)` [#](#method-insertionrevisionsaveid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.InsertionRevisionSaveId](/api/rtf/officeimo-rtf-rtfrun/): Insertion revision save identifier represented by \insrsid.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
rtfRun.InsertionRevisionSaveId = value;    rtfRun.InsertionRevisionSaveId(value);
```

`public static RtfRun Italic(RtfRun rtfRun, bool value = true)` [#](#method-italic-officeimo-rtf-rtfrun-boolean)

Enables italic formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

KerningHalfPoints 2 overloads

`public static RtfRun KerningHalfPoints(RtfRun rtfRun, int halfPoints)` [#](#method-kerninghalfpoints-officeimo-rtf-rtfrun-int32)

Sets the kerning threshold in half-points.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**halfPoints int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun KerningHalfPoints(RtfRun rtfRun, int? value)` [#](#method-kerninghalfpoints-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.KerningHalfPoints](/api/rtf/officeimo-rtf-rtfrun/): Optional kerning threshold in half-points.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
rtfRun.KerningHalfPoints = value;    rtfRun.KerningHalfPoints(value);
```

`public static RtfRun Language(RtfRun rtfRun, int languageId)` [#](#method-language-officeimo-rtf-rtfrun-int32)

Sets the run language LCID.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**languageId int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun LanguageId(RtfRun rtfRun, int? value)` [#](#method-languageid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.LanguageId](/api/rtf/officeimo-rtf-rtfrun/): Optional run language LCID represented by \lang.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.LanguageId = value;       rtfRun.LanguageId(value);
```

Note 2 overloads

`public static RtfRun Note(RtfRun rtfRun, RtfNote note)` [#](#method-note-officeimo-rtf-rtfrun-officeimo-rtf-rtfnote)

Attaches a footnote or annotation to this run.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**note OfficeIMO.Rtf.RtfNote required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Note(RtfRun rtfRun, Action<RtfNote> configure)` [#](#method-note-officeimo-rtf-rtfrun-action-officeimo-rtf-rtfnote)

Configures [RtfRun.Note](/api/rtf/officeimo-rtf-rtfrun/) in place: Optional footnote or annotation emitted immediately after this run.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

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

Configures the value.

Returns

`RtfRun` The same instance.

`public static RtfRun Outline(RtfRun rtfRun, bool value = true)` [#](#method-outline-officeimo-rtf-rtfrun-boolean)

Enables outline text formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun RevisionAuthorIndex(RtfRun rtfRun, int? value)` [#](#method-revisionauthorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.RevisionAuthorIndex](/api/rtf/officeimo-rtf-rtfrun/): Optional zero-based index into the document revision author table.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfRun.RevisionAuthorIndex = value;    rtfRun.RevisionAuthorIndex(value);
```

`public static RtfRun RevisionKind(RtfRun rtfRun, RtfRevisionKind value)` [#](#method-revisionkind-officeimo-rtf-rtfrun-officeimo-rtf-rtfrevisionkind)

Sets [RtfRun.RevisionKind](/api/rtf/officeimo-rtf-rtfrun/): Optional tracked revision marker for this run.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value OfficeIMO.Rtf.RtfRevisionKind required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.RevisionKind = value;     rtfRun.RevisionKind(value);
```

`public static RtfRun RevisionSaveIds(RtfRun rtfRun, int? character = null, int? insertion = null, int? deletion = null)` [#](#method-revisionsaveids-officeimo-rtf-rtfrun-nullable-system-int32-nullable-system-int32-nullable-system-int32)

Sets run-level revision save identifiers.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**character int? = null optional**

The value.

**insertion int? = null optional**

The value.

**deletion int? = null optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun RevisionTimestampValue(RtfRun rtfRun, int? value)` [#](#method-revisiontimestampvalue-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.RevisionTimestampValue](/api/rtf/officeimo-rtf-rtfrun/): Optional raw RTF DTTM revision timestamp value from \revdttm.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
rtfRun.RevisionTimestampValue = value;    rtfRun.RevisionTimestampValue(value);
```

`public static RtfRun Shadow(RtfRun rtfRun, bool value = true)` [#](#method-shadow-officeimo-rtf-rtfrun-boolean)

Enables shadow text formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Strikethrough(RtfRun rtfRun, bool value = true)` [#](#method-strikethrough-officeimo-rtf-rtfrun-boolean)

Enables strike-through formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Style(RtfRun rtfRun, int styleId)` [#](#method-style-officeimo-rtf-rtfrun-int32)

Sets the character style id.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**styleId int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun StyleId(RtfRun rtfRun, int? value)` [#](#method-styleid-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.StyleId](/api/rtf/officeimo-rtf-rtfrun/): Optional character stylesheet id.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.StyleId = value;          rtfRun.StyleId(value);
```

`public static RtfRun Subscript(RtfRun rtfRun)` [#](#method-subscript-officeimo-rtf-rtfrun)

Marks the run as subscript text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

Returns

`RtfRun` The same instance.

`public static RtfRun Superscript(RtfRun rtfRun)` [#](#method-superscript-officeimo-rtf-rtfrun)

Marks the run as superscript text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

Returns

`RtfRun` The same instance.

`public static RtfRun Text(RtfRun rtfRun, string value)` [#](#method-text-officeimo-rtf-rtfrun-string)

Sets [RtfRun.Text](/api/rtf/officeimo-rtf-rtfrun/): Run text.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value string required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
rtfRun.Text = value;             rtfRun.Text(value);
```

Underline 2 overloads

`public static RtfRun Underline(RtfRun rtfRun, bool value = true)` [#](#method-underline-officeimo-rtf-rtfrun-boolean)

Enables underline formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun Underline(RtfRun rtfRun, RtfUnderlineStyle style)` [#](#method-underline-officeimo-rtf-rtfrun-officeimo-rtf-rtfunderlinestyle)

Sets underline formatting to the requested RTF underline style.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**style OfficeIMO.Rtf.RtfUnderlineStyle required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun UnderlineColor(RtfRun rtfRun, int colorIndex)` [#](#method-underlinecolor-officeimo-rtf-rtfrun-int32)

Sets the underline color table index.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**colorIndex int required**

The value.

Returns

`RtfRun` The same instance.

`public static RtfRun UnderlineColorIndex(RtfRun rtfRun, int? value)` [#](#method-underlinecolorindex-officeimo-rtf-rtfrun-nullable-system-int32)

Sets [RtfRun.UnderlineColorIndex](/api/rtf/officeimo-rtf-rtfrun/): Optional underline color table index. A null value uses the document default.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value int? required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
rtfRun.UnderlineColorIndex = value;    rtfRun.UnderlineColorIndex(value);
```

`public static RtfRun UnderlineStyle(RtfRun rtfRun, RtfUnderlineStyle value)` [#](#method-underlinestyle-officeimo-rtf-rtfrun-officeimo-rtf-rtfunderlinestyle)

Sets [RtfRun.UnderlineStyle](/api/rtf/officeimo-rtf-rtfrun/): Underline style for the run.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value OfficeIMO.Rtf.RtfUnderlineStyle required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
rtfRun.UnderlineStyle = value;    rtfRun.UnderlineStyle(value);
```

`public static RtfRun UseDefaultCharacterFormatting(RtfRun rtfRun, bool value = true)` [#](#method-usedefaultcharacterformatting-officeimo-rtf-rtfrun-boolean)

Sets [RtfRun.UseDefaultCharacterFormatting](/api/rtf/officeimo-rtf-rtfrun/): Whether a native plain reset selects document defaults beneath this run's direct and character-style formatting.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
rtfRun.UseDefaultCharacterFormatting = value;    rtfRun.UseDefaultCharacterFormatting(value);
```

`public static RtfRun VerticalPosition(RtfRun rtfRun, RtfVerticalPosition value)` [#](#method-verticalposition-officeimo-rtf-rtfrun-officeimo-rtf-rtfverticalposition)

Sets [RtfRun.VerticalPosition](/api/rtf/officeimo-rtf-rtfrun/): Optional superscript or subscript positioning.

Parameters

**rtfRun OfficeIMO.Rtf.RtfRun required**

The instance.

**value OfficeIMO.Rtf.RtfVerticalPosition required**

The value.

Returns

`RtfRun` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
rtfRun.VerticalPosition = value;    rtfRun.VerticalPosition(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:CC42F1B439EE6391BC76BBD6185D089327334D7E2F83D69A5395DE20F523675A -->
