TrimFromStart
IAudioFrame.TrimFromStart property
Specifies the time duration to be removed from the beginning of the media during playback, in milliseconds. Read/write Single.
public float TrimFromStart { get; set; }
Examples
Example:
[C#]
using (Presentation pres = new Presentation())
{
IAudio audio = pres.Audios.AddAudio(File.ReadAllBytes("sampleaudio.mp3"));
IAudioFrame audioFrame = pres.Slides[0].Shapes.AddAudioFrameEmbedded(50, 50, 100, 100, audio);
// Set the start trimming time 1.5 seconds
audioFrame.TrimFromStart = 1500f;
}
See Also
- interface IAudioFrame
- namespace Aspose.Slides
- assembly Aspose.Slides