get_Persistence()

Control::get_Persistence() method

Gets the method used to store properties of the ActiveX control. Read only PersistenceType.

PersistenceType Aspose::Slides::Control::get_Persistence() override

Remarks

Next example shows the using Persistence property for checking if properties of ActiveX object may be changed as XML based ActiveX properties:

if (control->get_Persistence() == PersistenceType::PersistPropertyBag)
{
    control->get_Properties()->idx_set(u"Value", value);
}
else
{
    // Use your own method for managing ActiveX properties stored in its binary file
    YourMethodHere(control->get_ActiveXControlBinary());
}

See Also