public class Control extends java.lang.Object implements IControl
Represents an ActiveX control.
Modifier and Type | Method and Description |
---|---|
byte[] |
getActiveXControlBinary()
Specifies the persistence of an ActiveX control when the method used to persist is either PersistStream, PersistStreamInit or PersistStorage.
|
java.util.UUID |
getClassId()
Gets class id of this control.
|
IShapeFrame |
getFrame()
Returns or sets control's frame.
|
java.lang.String |
getName()
Gets or sets the name of this control.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
int |
getPersistence()
Gets the method used to store properties of the ActiveX control.
|
IPresentation |
getPresentation()
Returns the presentation.
|
IControlPropertiesCollection |
getProperties()
Returns a collection of ActiveX properties.
|
IBaseSlide |
getSlide()
Returns the base slide.
|
IPictureFillFormat |
getSubstitutePictureFormat()
Returns Control image fill properties object.
|
void |
setClassId(java.util.UUID value)
Gets class id of this control.
|
void |
setFrame(IShapeFrame value)
Returns or sets control's frame.
|
void |
setName(java.lang.String value)
Gets or sets the name of this control.
|
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 }
getPersistence
in interface IControl
public final java.lang.String getName()
Gets or sets the name of this control.
Read/write String
.
public final void setName(java.lang.String value)
Gets or sets the name of this control.
Read/write String
.
public final java.util.UUID getClassId()
Gets class id of this control.
Read-only UUID
.
getClassId
in interface IControl
public final void setClassId(java.util.UUID value)
Gets class id of this control.
Read-only UUID
.
public final IPictureFillFormat getSubstitutePictureFormat()
Returns Control image fill properties object.
Read-only IPictureFillFormat
.
getSubstitutePictureFormat
in interface IControl
public final IShapeFrame getFrame()
Returns or sets control's frame.
Read/write IShapeFrame
.
public final void setFrame(IShapeFrame value)
Returns or sets control's frame.
Read/write IShapeFrame
.
public final IControlPropertiesCollection getProperties()
Returns a collection of ActiveX properties.
Read-only IControlPropertiesCollection
.
getProperties
in interface IControl
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 }
getActiveXControlBinary
in interface IControl
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.
public final IBaseSlide getSlide()
ISlideComponent
Returns the base slide.
Read-only IBaseSlide
.
getSlide
in interface ISlideComponent
public final IPresentation getPresentation()
IPresentationComponent
Returns the presentation.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent