Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointTextRunScope

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Modifiers
sealed

Edits one 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.

Accepted by parameters 2

Methods

BackgroundColor 2 overloads
public PowerPointTextRunScope BackgroundColor(OfficeColor color) #

Sets PowerPointTextRun.BackgroundColor and returns this run.

Parameters

color OfficeIMO.OfficeColor required
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope BackgroundColor(OfficeColor? value) #

Sets PowerPointTextRun.BackgroundColor: 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() #

Restores the run to the normal text baseline.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope BaselinePercent(double? value) #

Sets PowerPointTextRun.BaselinePercent: 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) #

Sets PowerPointTextRun.Bold and returns this run.

Parameters

isBold bool = true optional
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope Capitalization(PowerPointCapitalization? value) #

Sets PowerPointTextRun.Capitalization: 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) #

Sets PowerPointTextRun.CharacterSpacing: 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") #

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) #

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) #

Sets PowerPointTextRun.Color and returns this run.

Parameters

color OfficeIMO.OfficeColor required
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope Color(OfficeColor? value) #

Sets PowerPointTextRun.Color: 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) #

Sets PowerPointTextRun.FontFamily and returns this run.

Parameters

fontFamily string required
The value.

Returns

PowerPointTextRunScope The same scope.
FontSize 2 overloads
public PowerPointTextRunScope FontSize(OfficeLength size) #

Sets PowerPointTextRun.FontSize and returns this run.

Parameters

size OfficeIMO.OfficeLength required
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope FontSize(OfficeLength? value) #

Sets PowerPointTextRun.FontSize: 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 HyperlinkTooltip(string? value) #

Sets PowerPointTextRun.HyperlinkTooltip: 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) #

Sets PowerPointTextRun.HyperlinkUsesTextColor: 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) #

Sets PowerPointTextRun.Italic and returns this run.

Parameters

isItalic bool = true optional
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope Language(string? value) #

Sets PowerPointTextRun.Language: 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") #

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) #

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) #

Sets PowerPointTextRun.StrikeStyle: 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) #

Sets PowerPointTextRun.Strikethrough and returns this run.

Parameters

strikethrough bool = true optional
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope Subscript(double baselinePercent = 25) #

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) #

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) #

Sets PowerPointTextRun.Text: 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) #

Sets PowerPointTextRun.Underline and returns this run.

Parameters

underline bool = true optional
The value.

Returns

PowerPointTextRunScope The same scope.
public PowerPointTextRunScope UnderlineStyle(PowerPointUnderlineStyle? value) #

Sets PowerPointTextRun.UnderlineStyle: Gets or sets the native DrawingML underline variant.

Parameters

value OfficeIMO.PowerPoint.PowerPointUnderlineStyle? required
The value.

Returns

PowerPointTextRunScope The same scope.

Properties

public PowerPointTextRun Model { get; } #

The PowerPointTextRun this scope edits, for plain C# inside a lambda.