Control
Inheritance: java.lang.Object, com.aspose.slides.DomObject
All Implemented Interfaces: com.aspose.slides.IControl
public class Control extends DomObject<ControlCollection> implements IControl
Represents an ActiveX control.
Methods
Method | Description |
---|---|
getPersistence() | Gets the method used to store properties of the ActiveX control. |
getName() | Gets or sets the name of this control. |
setName(String value) | Gets or sets the name of this control. |
getClassId() | Gets class id of this control. |
setClassId(UUID value) | Gets class id of this control. |
getSubstitutePictureFormat() | Returns Control image fill properties object. |
getFrame() | Returns or sets control’s frame. |
setFrame(IShapeFrame value) | Returns or sets control’s frame. |
getProperties() | Returns a collection of ActiveX properties. |
getActiveXControlBinary() | Specifies the persistence of an ActiveX control when the method used to persist is either PersistStream, PersistStreamInit or PersistStorage. |
getSlide() | |
getPresentation() |
getPersistence()
public final int getPersistence()
Gets the method used to store properties of the ActiveX control. Read only PersistenceType.
Next example shows the using Persistence property for checking if properties of ActiveX object may be changed as XML based ActiveX properties: if (control.getPersistence() == PersistenceType.PersistPropertyBag) { control.getProperties().set_Item("Value", value); } else { YourMethodHere(control.getActiveXControlBinary()); //Use your own method for managing ActiveX properties stored in its binary file }
Returns: int
getName()
public final String getName()
Gets or sets the name of this control. Read/write String.
Returns: java.lang.String
setName(String value)
public final void setName(String value)
Gets or sets the name of this control. Read/write String.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getClassId()
public final UUID getClassId()
Gets class id of this control. Read-only java.util.UUID.
Returns: java.util.UUID
setClassId(UUID value)
public final void setClassId(UUID value)
Gets class id of this control. Read-only java.util.UUID.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.UUID |
getSubstitutePictureFormat()
public final IPictureFillFormat getSubstitutePictureFormat()
Returns Control image fill properties object. Read-only IPictureFillFormat.
Returns: IPictureFillFormat
getFrame()
public final IShapeFrame getFrame()
Returns or sets control’s frame. Read/write IShapeFrame.
Returns: IShapeFrame
setFrame(IShapeFrame value)
public final void setFrame(IShapeFrame value)
Returns or sets control’s frame. Read/write IShapeFrame.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IShapeFrame |
getProperties()
public final IControlPropertiesCollection getProperties()
Returns a collection of ActiveX properties. Read-only IControlPropertiesCollection.
Note: Aspose.Slides supports only XML based ActiveX properties. If properties stored in binary format, this property will return null.
Returns: IControlPropertiesCollection
getActiveXControlBinary()
public final byte[] getActiveXControlBinary()
Specifies the persistence of an ActiveX control when the method used to persist is either PersistStream, PersistStreamInit or PersistStorage.
Next example shows the using ActiveXControlBinary property for changing ActiveX properties: if (control.getPersistence() == PersistenceType.PersistPropertyBag) { control.getProperties().set_Item("Value", value); } else { YourMethodHere(control.getActiveXControlBinary()); //Use your own method for managing ActiveX properties stored in its binary file }
Returns: byte[]
getSlide()
public final IBaseSlide getSlide()
Returns the base slide. Read-only IBaseSlide.
Returns: IBaseSlide
getPresentation()
public final IPresentation getPresentation()
Returns the presentation. Read-only IPresentation.
Returns: IPresentation