# PowerPointTextRunFluent

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

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

static

The fluent methods of [PowerPointTextRun](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/), 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
- PowerPointTextRunFluent

Filter members 

Show inherited

## Methods

BackgroundColor``1 2 overloads

`public static TSelf BackgroundColor<TSelf>(TSelf powerPointTextRun, OfficeColor color)` [#](#method-backgroundcolor-officeimo-officecolor)

Sets [PowerPointTextRun.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf BackgroundColor<TSelf>(TSelf powerPointTextRun, OfficeColor? value)` [#](#method-backgroundcolor-nullable-officeimo-officecolor)

Sets [PowerPointTextRun.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the run background (DrawingML highlight) color. Alpha below 255 is written as native opacity.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
powerPointTextRun.BackgroundColor = value;    powerPointTextRun.BackgroundColor(value);
```

`public static TSelf BaselinePercent<TSelf>(TSelf powerPointTextRun, double? value)` [#](#method-baselinepercent-nullable-system-double)

Sets [PowerPointTextRun.BaselinePercent](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the DrawingML baseline shift in percent, from -100 through 100. Positive values create superscript and negative values create subscript.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                 // C# fluent
powerPointTextRun.BaselinePercent = value;    powerPointTextRun.BaselinePercent(value);
```

`public static TSelf Baseline<TSelf>(TSelf powerPointTextRun)` [#](#method-baseline)

Restores the run to the normal text baseline.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

Returns

`TSelf` The same instance.

`public static TSelf Bold<TSelf>(TSelf powerPointTextRun, bool isBold = true)` [#](#method-bold-boolean)

Sets [PowerPointTextRun.Bold](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**isBold bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Capitalization<TSelf>(TSelf powerPointTextRun, PowerPointCapitalization? value)` [#](#method-capitalization-nullable-officeimo-powerpoint-powerpointcapitalization)

Sets [PowerPointTextRun.Capitalization](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets native DrawingML capitalization without changing the stored characters.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointCapitalization? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
powerPointTextRun.Capitalization = value;    powerPointTextRun.Capitalization(value);
```

`public static TSelf CharacterSpacing<TSelf>(TSelf powerPointTextRun, OfficeLength? value)` [#](#method-characterspacing-nullable-officeimo-officelength)

Sets [PowerPointTextRun.CharacterSpacing](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets explicit additional physical character spacing. Values are stored in hundredths of a point; null removes the override.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
powerPointTextRun.CharacterSpacing = value;    powerPointTextRun.CharacterSpacing(value);
```

`public static TSelf ClickSound<TSelf>(TSelf powerPointTextRun, Stream audio, string name, string contentType = "audio/wav", string extension = ".wav")` [#](#method-clicksound-io-stream-string-string-string)

Sets an embedded WAV or AIFF sound played when this text run is clicked.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**audio System.IO.Stream required**

The value.

**name string required**

The value.

**contentType string = "audio/wav" optional**

The value.

**extension string = ".wav" optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf ClickStopsSound<TSelf>(TSelf powerPointTextRun, bool value = true)` [#](#method-clickstopssound-boolean)

Controls whether clicking this text run stops the currently playing sound.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value bool = true optional**

The value. True when omitted.

Returns

`TSelf` The same instance.

Color``1 2 overloads

`public static TSelf Color<TSelf>(TSelf powerPointTextRun, OfficeColor color)` [#](#method-color-officeimo-officecolor)

Sets [PowerPointTextRun.Color](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**color OfficeIMO.OfficeColor required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Color<TSelf>(TSelf powerPointTextRun, OfficeColor? value)` [#](#method-color-nullable-officeimo-officecolor)

Sets [PowerPointTextRun.Color](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the local text color, retaining native theme slots. Alpha below 255 is written as native DrawingML opacity. Explicit color also applies to hyperlinks in readers supporting the native text-color extension.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf FontFamily<TSelf>(TSelf powerPointTextRun, string fontFamily)` [#](#method-fontfamily-string)

Sets [PowerPointTextRun.FontFamily](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**fontFamily string required**

The value.

Returns

`TSelf` The same instance.

FontSize``1 2 overloads

`public static TSelf FontSize<TSelf>(TSelf powerPointTextRun, OfficeLength size)` [#](#method-fontsize-officeimo-officelength)

Sets [PowerPointTextRun.FontSize](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**size OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf FontSize<TSelf>(TSelf powerPointTextRun, OfficeLength? value)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [PowerPointTextRun.FontSize](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the physical font size, preserving DrawingML hundredth-point precision. Null removes the override; sizes must be from 1 through 4000 points.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf HyperlinkTooltip<TSelf>(TSelf powerPointTextRun, string? value)` [#](#method-hyperlinktooltip-string)

Sets [PowerPointTextRun.HyperlinkTooltip](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the accessible tooltip associated with this run's click hyperlink.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
powerPointTextRun.HyperlinkTooltip = value;    powerPointTextRun.HyperlinkTooltip(value);
```

`public static TSelf HyperlinkUsesTextColor<TSelf>(TSelf powerPointTextRun, bool value = true)` [#](#method-hyperlinkusestextcolor-boolean)

Sets [PowerPointTextRun.HyperlinkUsesTextColor](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets whether the existing click hyperlink uses this run's explicit or inherited text color instead of the theme hyperlink color. Set the hyperlink before assigning this property.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                        // C# fluent
powerPointTextRun.HyperlinkUsesTextColor = value;    powerPointTextRun.HyperlinkUsesTextColor(value);
```

Hyperlink``1 4 overloads

`public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, string url, string? tooltip = null)` [#](#method-hyperlink-string-string)

Sets a hyperlink for this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**url string required**

The value.

**tooltip string? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, Uri uri, string? tooltip = null)` [#](#method-hyperlink-uri-string)

Sets a hyperlink for this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**uri System.Uri required**

The value.

**tooltip string? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, PowerPointSlide targetSlide, string? tooltip = null)` [#](#method-hyperlink-officeimo-powerpoint-powerpointslide-string)

Sets an internal hyperlink from this run to another slide in the same presentation.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**targetSlide OfficeIMO.PowerPoint.PowerPointSlide required**

The value.

**tooltip string? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, Uri? value)` [#](#method-hyperlink-uri)

Sets [PowerPointTextRun.Hyperlink](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the hyperlink target for this run. Internal slide links are returned as stable Markdown-compatible fragments such as #slide-2.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value System.Uri? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
powerPointTextRun.Hyperlink = value;    powerPointTextRun.Hyperlink(value);
```

`public static TSelf Italic<TSelf>(TSelf powerPointTextRun, bool isItalic = true)` [#](#method-italic-boolean)

Sets [PowerPointTextRun.Italic](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**isItalic bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Language<TSelf>(TSelf powerPointTextRun, string? value)` [#](#method-language-string)

Sets [PowerPointTextRun.Language](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the BCP 47 language tag applied to this text run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
powerPointTextRun.Language = value;    powerPointTextRun.Language(value);
```

`public static TSelf MouseOverSound<TSelf>(TSelf powerPointTextRun, Stream audio, string name, string contentType = "audio/wav", string extension = ".wav")` [#](#method-mouseoversound-io-stream-string-string-string)

Sets an embedded WAV or AIFF sound played when the pointer enters this text run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**audio System.IO.Stream required**

The value.

**name string required**

The value.

**contentType string = "audio/wav" optional**

The value.

**extension string = ".wav" optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf MouseOverStopsSound<TSelf>(TSelf powerPointTextRun, bool value = true)` [#](#method-mouseoverstopssound-boolean)

Controls whether entering this text run stops the currently playing sound.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value bool = true optional**

The value. True when omitted.

Returns

`TSelf` The same instance.

`public static TSelf StrikeStyle<TSelf>(TSelf powerPointTextRun, PowerPointStrikeStyle? value)` [#](#method-strikestyle-nullable-officeimo-powerpoint-powerpointstrikestyle)

Sets [PowerPointTextRun.StrikeStyle](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the native DrawingML strike-through variant.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointStrikeStyle? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
powerPointTextRun.StrikeStyle = value;    powerPointTextRun.StrikeStyle(value);
```

`public static TSelf Strikethrough<TSelf>(TSelf powerPointTextRun, bool strikethrough = true)` [#](#method-strikethrough-boolean)

Sets [PowerPointTextRun.Strikethrough](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**strikethrough bool = true optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Subscript<TSelf>(TSelf powerPointTextRun, double baselinePercent = 25)` [#](#method-subscript-double)

Applies subscript using a 25 percent baseline shift.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**baselinePercent double = 25 optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Superscript<TSelf>(TSelf powerPointTextRun, double baselinePercent = 30)` [#](#method-superscript-double)

Applies superscript using a 30 percent baseline shift.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**baselinePercent double = 30 optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Text<TSelf>(TSelf powerPointTextRun, string value)` [#](#method-text-string)

Sets [PowerPointTextRun.Text](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Text content of the run. A line break in the assigned text continues the run with a:br and a further run per line; this instance keeps formatting all of those lines. A dynamic field holds one line, so its breaks become spaces.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf UnderlineStyle<TSelf>(TSelf powerPointTextRun, PowerPointUnderlineStyle? value)` [#](#method-underlinestyle-nullable-officeimo-powerpoint-powerpointunderlinestyle)

Sets [PowerPointTextRun.UnderlineStyle](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): Gets or sets the native DrawingML underline variant.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**value OfficeIMO.PowerPoint.PowerPointUnderlineStyle? required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf Underline<TSelf>(TSelf powerPointTextRun, bool underline = true)` [#](#method-underline-boolean)

Sets [PowerPointTextRun.Underline](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) and returns this run.

Type Parameters

**TSelf**

Parameters

**powerPointTextRun TSelf required**

The instance.

**underline bool = true optional**

The value.

Returns

`TSelf` The same instance.

## 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:843615CFE4D72D9D9DEDD34901E79CF27A55AECB4086792D35451A9393F9E56F -->
