# PowerPointTextRunScope

Edits one PowerPointTextRun: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Modifiers**

sealed

Edits one [PowerPointTextRun](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- PowerPointTextRunScope

## Usage

Explore 27 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 25

- Method [PowerPointTextRunScope.BackgroundColor](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-backgroundcolor-nullable-officeimo-officecolor)
- Method [PowerPointTextRunScope.Baseline](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-baseline)
- Method [PowerPointTextRunScope.BaselinePercent](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-baselinepercent-nullable-system-double)
- Method [PowerPointTextRunScope.Bold](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-bold-boolean)
- Method [PowerPointTextRunScope.Capitalization](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-capitalization-nullable-officeimo-powerpoint-powerpointcapitalization)
- Method [PowerPointTextRunScope.CharacterSpacing](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-characterspacing-nullable-officeimo-officelength)
- Method [PowerPointTextRunScope.ClickSound](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-clicksound-io-stream-string-string-string)
- Method [PowerPointTextRunScope.ClickStopsSound](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-clickstopssound-boolean)
- Method [PowerPointTextRunScope.Color](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-color-nullable-officeimo-officecolor)
- Method [PowerPointTextRunScope.FontFamily](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-fontfamily-string)
- Method [PowerPointTextRunScope.FontSize](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-fontsize-officeimo-officelength)
- Method [PowerPointTextRunScope.Hyperlink](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-hyperlink-officeimo-powerpoint-powerpointslide-string)
- Method [PowerPointTextRunScope.HyperlinkTooltip](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-hyperlinktooltip-string)
- Method [PowerPointTextRunScope.HyperlinkUsesTextColor](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-hyperlinkusestextcolor-boolean)
- Method [PowerPointTextRunScope.Italic](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-italic-boolean)
- Method [PowerPointTextRunScope.Language](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-language-string)
- Method [PowerPointTextRunScope.MouseOverSound](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-mouseoversound-io-stream-string-string-string)
- Method [PowerPointTextRunScope.MouseOverStopsSound](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-mouseoverstopssound-boolean)
- Method [PowerPointTextRunScope.StrikeStyle](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-strikestyle-nullable-officeimo-powerpoint-powerpointstrikestyle)
- Method [PowerPointTextRunScope.Strikethrough](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-strikethrough-boolean)
- Method [PowerPointTextRunScope.Subscript](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-subscript-double)
- Method [PowerPointTextRunScope.Superscript](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-superscript-double)
- Method [PowerPointTextRunScope.Text](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-text-string)
- Method [PowerPointTextRunScope.Underline](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-underline-boolean)
- Method [PowerPointTextRunScope.UnderlineStyle](/api/powerpoint/officeimo-powerpoint-powerpointtextrunscope/#method-underlinestyle-nullable-officeimo-powerpoint-powerpointunderlinestyle)

### Accepted by parameters 2

- Method [PowerPointParagraphScope.Text](/api/powerpoint/officeimo-powerpoint-powerpointparagraphscope/#method-text-string-action-officeimo-powerpoint-powerpointtextrunscope) parameter `configure`
- Method [PowerPointTableCellScope.Text](/api/powerpoint/officeimo-powerpoint-powerpointtablecellscope/#method-text-string-action-officeimo-powerpoint-powerpointtextrunscope) parameter `configure`

Filter members 

Show inherited

## Methods

BackgroundColor 2 overloads

`public PowerPointTextRunScope BackgroundColor(OfficeColor color)` [#](#method-backgroundcolor-officeimo-officecolor)

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

Parameters

**color OfficeIMO.OfficeColor required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope BackgroundColor(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.

Parameters

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Baseline()` [#](#method-baseline)

Restores the run to the normal text baseline.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope BaselinePercent(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.

Parameters

**value double? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Bold(bool isBold = true)` [#](#method-bold-boolean)

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

Parameters

**isBold bool = true optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Capitalization(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.

Parameters

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

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope CharacterSpacing(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.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope ClickSound(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.

Parameters

**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

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope ClickStopsSound(bool value = true)` [#](#method-clickstopssound-boolean)

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

Parameters

**value bool = true optional**

The value. True when omitted.

Returns

`PowerPointTextRunScope` The same scope.

Color 2 overloads

`public PowerPointTextRunScope Color(OfficeColor color)` [#](#method-color-officeimo-officecolor)

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

Parameters

**color OfficeIMO.OfficeColor required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Color(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.

Parameters

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope FontFamily(string fontFamily)` [#](#method-fontfamily-string)

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

Parameters

**fontFamily string required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

FontSize 2 overloads

`public PowerPointTextRunScope FontSize(OfficeLength size)` [#](#method-fontsize-officeimo-officelength)

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

Parameters

**size OfficeIMO.OfficeLength required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope FontSize(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.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

Hyperlink 4 overloads

`public PowerPointTextRunScope Hyperlink(string url, string? tooltip = null)` [#](#method-hyperlink-string-string)

Sets a hyperlink for this run.

Parameters

**url string required**

The value.

**tooltip string? = null optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Hyperlink(Uri uri, string? tooltip = null)` [#](#method-hyperlink-uri-string)

Sets a hyperlink for this run.

Parameters

**uri System.Uri required**

The value.

**tooltip string? = null optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Hyperlink(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.

Parameters

**targetSlide OfficeIMO.PowerPoint.PowerPointSlide required**

The value.

**tooltip string? = null optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Hyperlink(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.

Parameters

**value System.Uri? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope HyperlinkTooltip(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.

Parameters

**value string? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope HyperlinkUsesTextColor(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.

Parameters

**value bool = true optional**

The value; true when omitted.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Italic(bool isItalic = true)` [#](#method-italic-boolean)

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

Parameters

**isItalic bool = true optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Language(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.

Parameters

**value string? required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope MouseOverSound(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.

Parameters

**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

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope MouseOverStopsSound(bool value = true)` [#](#method-mouseoverstopssound-boolean)

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

Parameters

**value bool = true optional**

The value. True when omitted.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope StrikeStyle(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.

Parameters

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

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Strikethrough(bool strikethrough = true)` [#](#method-strikethrough-boolean)

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

Parameters

**strikethrough bool = true optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Subscript(double baselinePercent = 25)` [#](#method-subscript-double)

Applies subscript using a 25 percent baseline shift.

Parameters

**baselinePercent double = 25 optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Superscript(double baselinePercent = 30)` [#](#method-superscript-double)

Applies superscript using a 30 percent baseline shift.

Parameters

**baselinePercent double = 30 optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Text(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.

Parameters

**value string required**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope Underline(bool underline = true)` [#](#method-underline-boolean)

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

Parameters

**underline bool = true optional**

The value.

Returns

`PowerPointTextRunScope` The same scope.

`public PowerPointTextRunScope UnderlineStyle(PowerPointUnderlineStyle? value)` [#](#method-underlinestyle-nullable-officeimo-powerpoint-powerpointunderlinestyle)

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

Parameters

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

The value.

Returns

`PowerPointTextRunScope` The same scope.

## 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?`

## Properties

`public PowerPointTextRun Model { get; }` [#](#property-model)

The [PowerPointTextRun](/api/powerpoint/officeimo-powerpoint-powerpointtextrun/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:57043A1D018791970F5FD99F9FFEA003967B7A775CDCB9D76F3F2DC20E03479D -->
