API Reference
PowerPointTextRun
Represents a formatted text run within a paragraph.
Inheritance
- Object
- PowerPointTextRun
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PowerPointParagraph.AddRun
- Property PowerPointParagraph.Runs
- Property PowerPointParagraphInline.Run
- Method PowerPointTableCell.AddRun
- Property PowerPointTableCell.Runs
Accepted by parameters
- Method PowerPointParagraph.AddRun
- Method PowerPointParagraph.AddText
- Method PowerPointTableCell.AddParagraph
- Method PowerPointTableCell.AddRun
- Method PowerPointTextBox.AddParagraph
- Method PowerPointTextStyle.Apply
Methods
public Void ClearMouseOverSound() #VoidRemoves the sound played when the pointer enters this text run.
public Byte[] GetClickSoundBytes() #Byte[]Returns the exact embedded click-sound bytes, when present.
public Byte[] GetMouseOverSoundBytes() #Byte[]Returns the exact embedded mouse-over-sound bytes, when present.
public Void SetClickSound(Stream audio, String name, String contentType = "audio/wav", String extension = ".wav") #VoidSets an embedded WAV or AIFF sound played when this text run is clicked.
Parameters
- audio System.IO.Stream
- name System.String
- contentType System.String = "audio/wav"
- extension System.String = ".wav"
public Void SetClickStopsSound(Boolean value) #VoidControls whether clicking this text run stops the currently playing sound.
Parameters
- value System.Boolean
public Void SetHyperlink(String url, String tooltip = null) #VoidSets a hyperlink for this run.
Parameters
- url System.String
- tooltip System.String = null
public Void SetHyperlink(Uri uri, String tooltip = null) #VoidSets a hyperlink for this run.
Parameters
- uri System.Uri
- tooltip System.String = null
public Void SetHyperlink(PowerPointSlide targetSlide, String tooltip = null) #VoidSets an internal hyperlink from this run to another slide in the same presentation.
Parameters
- targetSlide OfficeIMO.PowerPoint.PowerPointSlide
- tooltip System.String = null
public Void SetMouseOverSound(Stream audio, String name, String contentType = "audio/wav", String extension = ".wav") #VoidSets an embedded WAV or AIFF sound played when the pointer enters this text run.
Parameters
- audio System.IO.Stream
- name System.String
- contentType System.String = "audio/wav"
- extension System.String = ".wav"
public Void SetMouseOverStopsSound(Boolean value) #VoidControls whether entering this text run stops the currently playing sound.
Parameters
- value System.Boolean
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Language { get; set; } #Gets or sets the BCP 47 language tag applied to this text run.
public String HyperlinkTooltip { get; set; } #Gets or sets the accessible tooltip associated with this run's click hyperlink.
public Boolean HasMeaningfulHyperlinkLabel { get; } #Returns whether the visible link text is meaningful without surrounding context.
public String Text { get; set; } #Text content of the run.
public Boolean Bold { get; set; } #Gets or sets a value indicating whether the run is bold.
public Boolean Italic { get; set; } #Gets or sets a value indicating whether the run is italic.
public Boolean Underline { get; set; } #Gets or sets a value indicating whether the run is underlined.
public Boolean Strikethrough { get; set; } #Gets or sets a value indicating whether the run is strikethrough.
public Nullable<Int32> FontSize { get; set; } #Gets or sets the font size in points.
public Nullable<Double> FontSizePoints { get; set; } #Gets or sets the font size in points while preserving DrawingML hundredth-point precision.
public String FontName { get; set; } #Gets or sets the font name (Latin).
public String Color { get; set; } #Gets or sets the text color in hexadecimal format (e.g. "FF0000").
public String HighlightColor { get; set; } #Gets or sets the highlight color in hexadecimal format (e.g. "FFFF00").
public Uri Hyperlink { get; set; } #Gets or sets the hyperlink target for this run. Internal slide links are returned as stable Markdown-compatible fragments such as #slide-2.
public Boolean HasClickInteraction { get; } #Whether this run has click interaction markup, including hyperlinks, actions, or sounds.
public Boolean HasMouseOverInteraction { get; } #Whether this run has mouse-over interaction markup, including hyperlinks, actions, or sounds.
public String ClickAction { get; } #Gets the DrawingML click action URI, when one is authored.
public String MouseOverAction { get; } #Gets the DrawingML mouse-over action URI, when one is authored.
public Boolean ClickStopsSound { get; } #Whether clicking this run stops the currently playing sound.
public Boolean MouseOverStopsSound { get; } #Whether entering this run stops the currently playing sound.
public String ClickSoundName { get; } #Gets the sound name played when this text run is clicked.
public String MouseOverSoundName { get; } #Gets the sound name played when the pointer enters this text run.