Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Mon Feb 06, 2017 4:36 am

how to get animation duration time?
This is my sample, duration time = 4 secons

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Mon Feb 06, 2017 6:11 am

Dear lemuihuongviet,

Thanks for your sample and information.
Sorry that currently Spire.Presentation doesn't support to get animation duration time. But we have added the new feature, we will notify you as soon as it is done.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 06, 2017 6:42 am

Dear Betsy.jiang!
Thanks you very much!

lemuihuongviet
 
Posts: 26
Joined: Thu Dec 01, 2016 10:33 am

Tue Feb 07, 2017 7:13 am

Dear lemuihuongviet,

Sorry for my mistake.
After further investigation, we found Spire.Presentation supports to get that value.
Here is sample code for your reference.
Code: Select all
var time = slide.Timeline.MainSequence[0].CommonBehaviorCollection[1].Timing.Duration;

If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Feb 13, 2017 6:56 am

Dear lemuihuongviet,

Did you test the code I provided ? Did it meet your needs ?
Looking forward to your reply.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation