Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointTextRunFluent

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Modifiers
static

The fluent methods of 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

Methods

BackgroundColor``1 2 overloads
public static TSelf BackgroundColor<TSelf>(TSelf powerPointTextRun, OfficeColor color) #

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

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

// C# initializer or property                 // C# fluent
powerPointTextRun.BackgroundColor = value;    powerPointTextRun.BackgroundColor(value);
public static TSelf BaselinePercent<TSelf>(TSelf powerPointTextRun, 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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value double? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                 // C# fluent
powerPointTextRun.BaselinePercent = value;    powerPointTextRun.BaselinePercent(value);
public static TSelf Baseline<TSelf>(TSelf powerPointTextRun) #

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

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

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

// C# initializer or property                // C# fluent
powerPointTextRun.Capitalization = value;    powerPointTextRun.Capitalization(value);
public static TSelf CharacterSpacing<TSelf>(TSelf powerPointTextRun, 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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

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

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

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

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

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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
powerPointTextRun.Color = value;    powerPointTextRun.Color(value);
public static TSelf FontFamily<TSelf>(TSelf powerPointTextRun, string fontFamily) #

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

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

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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property          // C# fluent
powerPointTextRun.FontSize = value;    powerPointTextRun.FontSize(value);
public static TSelf HyperlinkTooltip<TSelf>(TSelf powerPointTextRun, string? value) #

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

// C# initializer or property                  // C# fluent
powerPointTextRun.HyperlinkTooltip = value;    powerPointTextRun.HyperlinkTooltip(value);
public static TSelf HyperlinkUsesTextColor<TSelf>(TSelf powerPointTextRun, 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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                        // C# fluent
powerPointTextRun.HyperlinkUsesTextColor = value;    powerPointTextRun.HyperlinkUsesTextColor(value);
Hyperlink``1 4 overloads
public static TSelf Italic<TSelf>(TSelf powerPointTextRun, bool isItalic = true) #

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

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

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

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

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

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

// C# initializer or property             // C# fluent
powerPointTextRun.StrikeStyle = value;    powerPointTextRun.StrikeStyle(value);
public static TSelf Strikethrough<TSelf>(TSelf powerPointTextRun, bool strikethrough = true) #

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

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

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

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.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
value string required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property      // C# fluent
powerPointTextRun.Text = value;    powerPointTextRun.Text(value);
public static TSelf UnderlineStyle<TSelf>(TSelf powerPointTextRun, PowerPointUnderlineStyle? value) #

Sets PowerPointTextRun.UnderlineStyle: 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

// C# initializer or property                // C# fluent
powerPointTextRun.UnderlineStyle = value;    powerPointTextRun.UnderlineStyle(value);
public static TSelf Underline<TSelf>(TSelf powerPointTextRun, bool underline = true) #

Sets PowerPointTextRun.Underline and returns this run.

Type Parameters

TSelf

Parameters

powerPointTextRun TSelf required
The instance.
underline bool = true optional
The value.

Returns

TSelf The same instance.