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: 20.3.0.0 (20.3)
Syntaxpublic PersistenceType Persistence { get; }
Public ReadOnly Property Persistence As PersistenceType
Get
public:
virtual property PersistenceType Persistence {
PersistenceType get () sealed;
}
abstract Persistence : PersistenceType with get
override Persistence : PersistenceType with get
Property Value
Type:
PersistenceTypeImplements
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);
}
See Also