PowerPointTextRunFluent
OfficeIMO.PowerPoint
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
public static TSelf BackgroundColor<TSelf>(TSelf powerPointTextRun, OfficeColor color) #Sets PowerPointTextRun.BackgroundColor and returns this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- color OfficeIMO.OfficeColor
- 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
- The instance.
- value OfficeIMO.OfficeColor?
- 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
- The instance.
- value double?
- 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
- 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
- The instance.
- isBold bool = true
- 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
- The instance.
- value OfficeIMO.PowerPoint.PowerPointCapitalization?
- 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
- The instance.
- value OfficeIMO.OfficeLength?
- 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
- The instance.
- audio System.IO.Stream
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- 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
- The instance.
- value bool = true
- The value. True when omitted.
Returns
TSelf The same instance.public static TSelf Color<TSelf>(TSelf powerPointTextRun, OfficeColor color) #Sets PowerPointTextRun.Color and returns this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- color OfficeIMO.OfficeColor
- 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
- The instance.
- value OfficeIMO.OfficeColor?
- 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
- The instance.
- fontFamily string
- The value.
Returns
TSelf The same instance.public static TSelf FontSize<TSelf>(TSelf powerPointTextRun, OfficeLength size) #Sets PowerPointTextRun.FontSize and returns this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- size OfficeIMO.OfficeLength
- 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
- The instance.
- value OfficeIMO.OfficeLength?
- 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
- The instance.
- value string?
- 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
- The instance.
- value bool = true
- The value; true when omitted.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
powerPointTextRun.HyperlinkUsesTextColor = value; powerPointTextRun.HyperlinkUsesTextColor(value);public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, string url, string? tooltip = null) #Sets a hyperlink for this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- url string
- The value.
- tooltip string? = null
- The value.
Returns
TSelf The same instance.public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, Uri uri, string? tooltip = null) #Sets a hyperlink for this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- uri System.Uri
- The value.
- tooltip string? = null
- The value.
Returns
TSelf The same instance.public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, PowerPointSlide targetSlide, string? tooltip = null) #Sets an internal hyperlink from this run to another slide in the same presentation.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- targetSlide OfficeIMO.PowerPoint.PowerPointSlide
- The value.
- tooltip string? = null
- The value.
Returns
TSelf The same instance.public static TSelf Hyperlink<TSelf>(TSelf powerPointTextRun, Uri? value) #Sets PowerPointTextRun.Hyperlink: 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
- The instance.
- value System.Uri?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
powerPointTextRun.Hyperlink = value; powerPointTextRun.Hyperlink(value);public static TSelf Italic<TSelf>(TSelf powerPointTextRun, bool isItalic = true) #Sets PowerPointTextRun.Italic and returns this run.
Type Parameters
- TSelf
Parameters
- powerPointTextRun TSelf
- The instance.
- isItalic bool = true
- 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
- The instance.
- value string?
- 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
- The instance.
- audio System.IO.Stream
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- 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
- The instance.
- value bool = true
- 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
- The instance.
- value OfficeIMO.PowerPoint.PowerPointStrikeStyle?
- 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
- The instance.
- strikethrough bool = true
- 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
- The instance.
- baselinePercent double = 25
- 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
- The instance.
- baselinePercent double = 30
- 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
- The instance.
- value string
- 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
- The instance.
- value OfficeIMO.PowerPoint.PowerPointUnderlineStyle?
- 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
- The instance.
- underline bool = true
- The value.
Returns
TSelf The same instance.