TrimFromEnd
IAudioFrame.TrimFromEnd property
Specifies the time duration to be removed from the end of the media during playback, in milliseconds. Read/write Single.
public float TrimFromEnd { 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 end trimming time 2 seconds
audioFrame.TrimFromEnd = 2000f;
}
See Also
- interface IAudioFrame
- namespace Aspose.Slides
- assembly Aspose.Slides