public class Control extends DomObject<ControlCollection> 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.
|
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.
|
getParent_Immediatepublic 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 IControlpublic 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 IControlpublic 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 IControlpublic 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 IControlpublic 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 IControlpublic final IBaseSlide getSlide()
ISlideComponent
Returns the base slide.
Read-only IBaseSlide.
getSlide in interface ISlideComponentpublic final IPresentation getPresentation()
IPresentationComponent
Returns the presentation.
Read-only IPresentation.
getPresentation in interface IPresentationComponentCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.