# ExcelRichTextRunFluent

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelRichTextRun](/api/excel/officeimo-excel-excelrichtextrun/), 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
- ExcelRichTextRunFluent

Filter members 

Show inherited

## Methods

`public static ExcelRichTextRun Bold(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-bold-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Bold](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run is bold.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
excelRichTextRun.Bold = value;    excelRichTextRun.Bold(value);
```

`public static ExcelRichTextRun Color(ExcelRichTextRun excelRichTextRun, OfficeColor? value)` [#](#method-color-officeimo-excel-excelrichtextrun-nullable-officeimo-officecolor)

Sets [ExcelRichTextRun.Color](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the literal or theme-based run text color.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
excelRichTextRun.Color = value;    excelRichTextRun.Color(value);
```

`public static ExcelRichTextRun Condense(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-condense-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Condense](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run font uses condensed text.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
excelRichTextRun.Condense = value;    excelRichTextRun.Condense(value);
```

`public static ExcelRichTextRun Extend(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-extend-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Extend](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run font uses extended text.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
excelRichTextRun.Extend = value;    excelRichTextRun.Extend(value);
```

`public static ExcelRichTextRun FontCharacterSet(ExcelRichTextRun excelRichTextRun, byte? value)` [#](#method-fontcharacterset-officeimo-excel-excelrichtextrun-nullable-system-byte)

Sets [ExcelRichTextRun.FontCharacterSet](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run font character set byte.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value byte? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
excelRichTextRun.FontCharacterSet = value;    excelRichTextRun.FontCharacterSet(value);
```

`public static ExcelRichTextRun FontFamily(ExcelRichTextRun excelRichTextRun, string? value)` [#](#method-fontfamily-officeimo-excel-excelrichtextrun-string)

Sets [ExcelRichTextRun.FontFamily](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run typeface family name.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value string? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
excelRichTextRun.FontFamily = value;    excelRichTextRun.FontFamily(value);
```

`public static ExcelRichTextRun FontFamilyClassification(ExcelRichTextRun excelRichTextRun, byte? value)` [#](#method-fontfamilyclassification-officeimo-excel-excelrichtextrun-nullable-system-byte)

Sets [ExcelRichTextRun.FontFamilyClassification](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run font family classification byte.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value byte? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property                         // C# fluent
excelRichTextRun.FontFamilyClassification = value;    excelRichTextRun.FontFamilyClassification(value);
```

`public static ExcelRichTextRun FontSize(ExcelRichTextRun excelRichTextRun, OfficeLength? value)` [#](#method-fontsize-officeimo-excel-excelrichtextrun-nullable-officeimo-officelength)

Sets [ExcelRichTextRun.FontSize](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the positive physical run font size; null inherits the cell font size.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

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

`public static ExcelRichTextRun Italic(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-italic-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Italic](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run is italic.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
excelRichTextRun.Italic = value;    excelRichTextRun.Italic(value);
```

`public static ExcelRichTextRun Outline(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-outline-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Outline](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run font uses outline text.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
excelRichTextRun.Outline = value;    excelRichTextRun.Outline(value);
```

`public static ExcelRichTextRun Shadow(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-shadow-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Shadow](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run font uses shadow text.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
excelRichTextRun.Shadow = value;    excelRichTextRun.Shadow(value);
```

`public static ExcelRichTextRun Strikethrough(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-strikethrough-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Strikethrough](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run is struck through.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
excelRichTextRun.Strikethrough = value;    excelRichTextRun.Strikethrough(value);
```

`public static ExcelRichTextRun Text(ExcelRichTextRun excelRichTextRun, string value)` [#](#method-text-officeimo-excel-excelrichtextrun-string)

Sets [ExcelRichTextRun.Text](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run text.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value string required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

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

`public static ExcelRichTextRun Underline(ExcelRichTextRun excelRichTextRun, bool value = true)` [#](#method-underline-officeimo-excel-excelrichtextrun-boolean)

Sets [ExcelRichTextRun.Underline](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets whether the run is underlined.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
excelRichTextRun.Underline = value;    excelRichTextRun.Underline(value);
```

`public static ExcelRichTextRun UnderlineStyle(ExcelRichTextRun excelRichTextRun, ExcelUnderlineStyle? value)` [#](#method-underlinestyle-officeimo-excel-excelrichtextrun-nullable-officeimo-excel-excelunderlinestyle)

Sets [ExcelRichTextRun.UnderlineStyle](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run underline style.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value OfficeIMO.Excel.ExcelUnderlineStyle? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

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

`public static ExcelRichTextRun VerticalTextAlignment(ExcelRichTextRun excelRichTextRun, ExcelVerticalTextAlignment? value)` [#](#method-verticaltextalignment-officeimo-excel-excelrichtextrun-nullable-officeimo-excel-excelverticaltextalignment)

Sets [ExcelRichTextRun.VerticalTextAlignment](/api/excel/officeimo-excel-excelrichtextrun/): Gets or sets the run vertical text alignment.

Parameters

**excelRichTextRun OfficeIMO.Excel.ExcelRichTextRun required**

The instance.

**value OfficeIMO.Excel.ExcelVerticalTextAlignment? required**

The value.

Returns

`ExcelRichTextRun` The same instance.

Examples

```csharp
// C# initializer or property                      // C# fluent
excelRichTextRun.VerticalTextAlignment = value;    excelRichTextRun.VerticalTextAlignment(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:A9AB587774C16F166E7ABA4D225E34A36DDC94BBEF13B5F1FFFA366BF7A9941A -->
