ActionPlaySound Method (Stream, String)
Specifies the sound to be played when the action is activated.
GemBox.Presentation (in GemBox.Presentation.dll) Version: 18.104.22.1684
public AudioContent PlaySound(
Public Function PlaySound (
stream As Stream,
soundName As String
) As AudioContent
- Type: System.IOStream
An audio stream in a Waveform Audio File Format (Wav).
- Type: SystemString
An original name or a given short name used to distinguish this sound from others by providing a human readable name for the attached sound should the user need to identify the sound among others within the UI.
The sound to be played when the action is activated.
Sound is always stored in a Waveform Audio File Format (Wav) stream that is embedded in the presentation.
Do not set any member on the returned AudioContent because they are not supported in this context (for example, they won't be saved to a PPTX file).
To set a sound for the action, either use this method or the Sound property.