SlideShowTransition Class
Represents a slide transition.
- Inheritance:
- System.ObjectSlideShowTransition
Properties
AdvanceAfterTime
Gets or sets the time, in milliseconds, after which the transition should start.
Property Value
- System.Int32
The time, in milliseconds, after which the transition should start.
Exceptions
- System.ArgumentOutOfRangeException
Value is not greater than zero.
AdvanceOnClick
Gets or sets a value indicating whether a mouse click advances the slide.
Property Value
- System.Boolean
true if a mouse click advances the slide; otherwise, false.
AdvanceOnTime
Gets or sets a value indicating whether the slide advances automatically, after the time specified in the AdvanceAfterTime.
Property Value
- System.Boolean
true if the slide advances automatically, after the time specified in the AdvanceAfterTime; otherwise, false.
Duration
Gets or sets the transition duration (in milliseconds).
Property Value
- System.Int32
The transition duration (in milliseconds).
Exceptions
- System.ArgumentOutOfRangeException
Value is not greater or equal to zero.
Effect
Gets or sets the transition effect.
Property Value
The transition effect.
LoopUntilNextSound
Gets or sets a value indicating whether to repeat the current transition sound until the next sound is played.
Property Value
- System.Boolean
true to repeat the current transition sound until the next sound is played; otherwise, false.
Sound
Gets or sets the sound associated with the transition.
Property Value
The sound associated with the transition.
Exceptions
- System.ArgumentException
Sound is not embedded WAV.
Speed
Gets or sets the transition speed.
Property Value
The transition speed.
StopPreviousSound
Gets or sets a value indicating whether to stop all previous sounds when this transition is activated.
Property Value
- System.Boolean
true to stop all previous sounds when this transition is activated; otherwise, false.
TransitionType
Gets or sets the transition type.
public TransitionType TransitionType { get; set; }
Public Property TransitionType As TransitionType
Property Value
The transition type.
Methods
PlaySound(Stream)
Specifies the sound to be played when the transition is activated.
public AudioContent PlaySound(Stream stream)
Public Function PlaySound(stream As Stream) As AudioContent
Parameters
stream
- System.IO.Stream
An audio stream in a Waveform Audio File Format (Wav).
Returns
The sound to be played when the transition is activated.
Remarks
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 transition, either use this method or the Sound property.
Exceptions
- System.ArgumentNullException
stream
is null.
- System.ArgumentException
stream
is not readable.
PlaySound(Stream, String)
Specifies the sound to be played when the transition is activated.
public AudioContent PlaySound(Stream stream, string soundName)
Public Function PlaySound(stream As Stream, soundName As String) As AudioContent
Parameters
stream
- System.IO.Stream
An audio stream in a Waveform Audio File Format (Wav).
soundName
- System.String
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.
Returns
The sound to be played when the transition is activated.
Remarks
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 transition, either use this method or the Sound property.
Exceptions
- System.ArgumentNullException
stream
is null.
- System.ArgumentException
stream
is not readable.