PowerPointTextRunScope
OfficeIMO.PowerPoint
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.
Returned or exposed by 25
- Method PowerPointTextRunScope.BackgroundColor
- Method PowerPointTextRunScope.Baseline
- Method PowerPointTextRunScope.BaselinePercent
- Method PowerPointTextRunScope.Bold
- Method PowerPointTextRunScope.Capitalization
- Method PowerPointTextRunScope.CharacterSpacing
- Method PowerPointTextRunScope.ClickSound
- Method PowerPointTextRunScope.ClickStopsSound
- Method PowerPointTextRunScope.Color
- Method PowerPointTextRunScope.FontFamily
- Method PowerPointTextRunScope.FontSize
- Method PowerPointTextRunScope.Hyperlink
- Method PowerPointTextRunScope.HyperlinkTooltip
- Method PowerPointTextRunScope.HyperlinkUsesTextColor
- Method PowerPointTextRunScope.Italic
- Method PowerPointTextRunScope.Language
- Method PowerPointTextRunScope.MouseOverSound
- Method PowerPointTextRunScope.MouseOverStopsSound
- Method PowerPointTextRunScope.StrikeStyle
- Method PowerPointTextRunScope.Strikethrough
- Method PowerPointTextRunScope.Subscript
- Method PowerPointTextRunScope.Superscript
- Method PowerPointTextRunScope.Text
- Method PowerPointTextRunScope.Underline
- Method PowerPointTextRunScope.UnderlineStyle
Accepted by parameters 2
- Method PowerPointParagraphScope.Text
- Method PowerPointTableCellScope.Text
Methods
public PowerPointTextRunScope BackgroundColor(OfficeColor color) #Sets PowerPointTextRun.BackgroundColor and returns this run.
Parameters
- color OfficeIMO.OfficeColor
- The value.
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?
- The value.
public PowerPointTextRunScope Baseline() #Restores the run to the normal text baseline.
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?
- The value.
public PowerPointTextRunScope Bold(bool isBold = true) #Sets PowerPointTextRun.Bold and returns this run.
Parameters
- isBold bool = true
- The value.
public PowerPointTextRunScope Capitalization(PowerPointCapitalization? value) #Sets PowerPointTextRun.Capitalization: Gets or sets native DrawingML capitalization without changing the stored characters.
Parameters
- value OfficeIMO.PowerPoint.PowerPointCapitalization?
- The value.
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?
- The value.
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
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- The value.
public PowerPointTextRunScope ClickStopsSound(bool value = true) #Controls whether clicking this text run stops the currently playing sound.
Parameters
- value bool = true
- The value. True when omitted.
public PowerPointTextRunScope Color(OfficeColor color) #Sets PowerPointTextRun.Color and returns this run.
Parameters
- color OfficeIMO.OfficeColor
- The value.
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?
- The value.
public PowerPointTextRunScope FontFamily(string fontFamily) #Sets PowerPointTextRun.FontFamily and returns this run.
Parameters
- fontFamily string
- The value.
public PowerPointTextRunScope FontSize(OfficeLength size) #Sets PowerPointTextRun.FontSize and returns this run.
Parameters
- size OfficeIMO.OfficeLength
- The value.
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?
- The value.
public PowerPointTextRunScope Hyperlink(string url, string? tooltip = null) #Sets a hyperlink for this run.
Parameters
- url string
- The value.
- tooltip string? = null
- The value.
public PowerPointTextRunScope Hyperlink(Uri uri, string? tooltip = null) #Sets a hyperlink for this run.
Parameters
- uri System.Uri
- The value.
- tooltip string? = null
- The value.
public PowerPointTextRunScope Hyperlink(PowerPointSlide targetSlide, string? tooltip = null) #Sets an internal hyperlink from this run to another slide in the same presentation.
Parameters
- targetSlide OfficeIMO.PowerPoint.PowerPointSlide
- The value.
- tooltip string? = null
- The value.
public PowerPointTextRunScope Hyperlink(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.
Parameters
- value System.Uri?
- The value.
public PowerPointTextRunScope HyperlinkTooltip(string? value) #Sets PowerPointTextRun.HyperlinkTooltip: Gets or sets the accessible tooltip associated with this run's click hyperlink.
Parameters
- value string?
- The value.
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
- The value; true when omitted.
public PowerPointTextRunScope Italic(bool isItalic = true) #Sets PowerPointTextRun.Italic and returns this run.
Parameters
- isItalic bool = true
- The value.
public PowerPointTextRunScope Language(string? value) #Sets PowerPointTextRun.Language: Gets or sets the BCP 47 language tag applied to this text run.
Parameters
- value string?
- The value.
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
- The value.
- name string
- The value.
- contentType string = "audio/wav"
- The value.
- extension string = ".wav"
- The value.
public PowerPointTextRunScope MouseOverStopsSound(bool value = true) #Controls whether entering this text run stops the currently playing sound.
Parameters
- value bool = true
- The value. True when omitted.
public PowerPointTextRunScope StrikeStyle(PowerPointStrikeStyle? value) #Sets PowerPointTextRun.StrikeStyle: Gets or sets the native DrawingML strike-through variant.
Parameters
- value OfficeIMO.PowerPoint.PowerPointStrikeStyle?
- The value.
public PowerPointTextRunScope Strikethrough(bool strikethrough = true) #Sets PowerPointTextRun.Strikethrough and returns this run.
Parameters
- strikethrough bool = true
- The value.
public PowerPointTextRunScope Subscript(double baselinePercent = 25) #Applies subscript using a 25 percent baseline shift.
Parameters
- baselinePercent double = 25
- The value.
public PowerPointTextRunScope Superscript(double baselinePercent = 30) #Applies superscript using a 30 percent baseline shift.
Parameters
- baselinePercent double = 30
- The value.
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
- The value.
public PowerPointTextRunScope Underline(bool underline = true) #Sets PowerPointTextRun.Underline and returns this run.
Parameters
- underline bool = true
- The value.
public PowerPointTextRunScope UnderlineStyle(PowerPointUnderlineStyle? value) #Sets PowerPointTextRun.UnderlineStyle: Gets or sets the native DrawingML underline variant.
Parameters
- value OfficeIMO.PowerPoint.PowerPointUnderlineStyle?
- The value.
Inherited Methods
Properties
public PowerPointTextRun Model { get; } #The PowerPointTextRun this scope edits, for plain C# inside a lambda.