FadeInDuration

IAudioFrame.FadeInDuration property

Specifies the time duration for the initial fade-in of the media in milliseconds. Read/write Single.

public float FadeInDuration { get; set; }

Examples

Example:

[C#]
using (Presentation pres = new Presentation())
{
    // Add Audio Frame
    IAudio audio = pres.Audios.AddAudio(File.ReadAllBytes("sampleaudio.mp3"));
    IAudioFrame audioFrame = pres.Slides[0].Shapes.AddAudioFrameEmbedded(50, 50, 100, 100, audio);

    // Set the duration of the starting fade for 200ms
    audioFrame.FadeInDuration = 200f;

    pres.Save("AudioFrameFade_out.pptx", SaveFormat.Pptx);
}

See Also