ControlPersistence Property

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

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.6.0.0 (21.6)
Syntax
public PersistenceType Persistence { get; }

Property Value

Type: PersistenceType

Implements

IControlPersistence
Examples
Next example shows the using Persistence property for checking if properties of ActiveX object may be changed as XML based ActiveX properties:
[C#]
if (control.Persistence == PersistenceType.PersistPropertyBag)
{
    control.Properties["Value"] = value;
}
else
{
    YourMethodHere(control.ActiveXControlBinary); //Use your own method for managing ActiveX properties stored in its binary file
}
See Also