API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdAnimation Class > OdAnimation Methods > OdAnimation::setPlayOnOpenDocument Method
OdAnimation::setPlayOnOpenDocument Method
Syntax
C++
void setPlayOnOpenDocument(bool state);
Parameters 
Description 
bool state 
[in] A new flag value. 

Sets the flag that determines whether the animation should be started when a document opens.

If the flag is true, the animation starts after the document is opened, otherwise the animation starts on user request.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.