public interface IOleObjectFrame extends IGraphicalObject
Represents an OLE object on a slide.
Modifier and Type | Method and Description |
---|---|
IOleEmbeddedDataInfo |
getEmbeddedData()
Gets information about OLE embedded data.
|
java.lang.String |
getEmbeddedFileLabel()
Returns the file name of embedded OLE object
|
java.lang.String |
getEmbeddedFileName()
Returns the path of embedded OLE object
|
java.lang.String |
getLinkFileName()
Returns the full path to a linked file.
|
java.lang.String |
getLinkPathLong()
Returns the full path to a linked file.
|
java.lang.String |
getObjectName()
Returns or sets the name of an object.
|
java.lang.String |
getObjectProgId()
Returns the ProgID of an object.
|
IPictureFillFormat |
getSubstitutePictureFormat()
Returns OleObject image fill properties object.
|
java.lang.String |
getSubstitutePictureTitle()
Returns or sets the title for OleObject icon.
|
boolean |
getUpdateAutomatic()
Determines if the linked embedded object is automatically updated when the presentation is opened or printed.
|
boolean |
isObjectIcon()
Determines whether an object is visible as icon.
|
boolean |
isObjectLink()
Determines whether an object is linked to external file.
|
void |
setEmbeddedData(IOleEmbeddedDataInfo embeddedData)
Sets information about OLE embedded data.
|
void |
setLinkPathLong(java.lang.String value)
Returns the full path to a linked file.
|
void |
setObjectIcon(boolean value)
Determines whether an object is visible as icon.
|
void |
setObjectName(java.lang.String value)
Returns or sets the name of an object.
|
void |
setObjectProgId(java.lang.String value)
Returns the ProgID of an object.
|
void |
setSubstitutePictureTitle(java.lang.String value)
Returns or sets the title for OleObject icon.
|
void |
setUpdateAutomatic(boolean value)
Determines if the linked embedded object is automatically updated when the presentation is opened or printed.
|
getGraphicalObjectLock
addPlaceholder, getAlternativeText, getAlternativeTextTitle, getBlackWhiteMode, getConnectionSiteCount, getCustomData, getEffectFormat, getFillFormat, getFrame, getHeight, getHidden, getLineFormat, getName, getOfficeInteropShapeId, getParentGroup, getPlaceholder, getRawFrame, getRotation, getShapeLock, getThreeDFormat, getThumbnail, getThumbnail, getUniqueId, getWidth, getX, getY, getZOrderPosition, isGrouped, isTextHolder, removePlaceholder, setAlternativeText, setAlternativeTextTitle, setBlackWhiteMode, setFrame, setHeight, setHidden, setName, setRawFrame, setRotation, setWidth, setX, setY, writeAsSvg, writeAsSvg
getSlide
getPresentation
getHyperlinkClick, getHyperlinkManager, getHyperlinkMouseOver, setHyperlinkClick, setHyperlinkMouseOver
IPictureFillFormat getSubstitutePictureFormat()
Returns OleObject image fill properties object.
Read-only IPictureFillFormat
.
java.lang.String getObjectName()
Returns or sets the name of an object.
Read/write String
.
void setObjectName(java.lang.String value)
Returns or sets the name of an object.
Read/write String
.
IOleEmbeddedDataInfo getEmbeddedData()
Gets information about OLE embedded data.
Read only IOleEmbeddedDataInfo
.
void setEmbeddedData(IOleEmbeddedDataInfo embeddedData)
Sets information about OLE embedded data.
Following example demonstrates how to change OLE embedded data and its type for existingIOleObjectFrame
objectPresentation pres = new Presentation("SomePresentation.pptx"); try { OleObjectFrame oof = (OleObjectFrame) pres.getSlides().get_Item(0).getShapes().get_Item(0); if (oof != null) { IOleEmbeddedDataInfo newData = new OleEmbeddedDataInfo(Files.readAllBytes(Paths.get("Picture.png")), "png"); oof.setEmbeddedData(newData); } } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
embeddedData
- Embedded data IOleEmbeddedDataInfo
com.aspose.ms.System.ArgumentNullException
- When embeddedData parameter is null.java.lang.String getObjectProgId()
Returns the ProgID of an object.
Read olny String
.
void setObjectProgId(java.lang.String value)
Returns the ProgID of an object.
Read olny String
.
java.lang.String getLinkFileName()
Returns the full path to a linked file. Short file name will be used.
Read-only String
.
java.lang.String getLinkPathLong()
Returns the full path to a linked file. Long file name will be used.
Read/write String
.
void setLinkPathLong(java.lang.String value)
Returns the full path to a linked file. Long file name will be used.
Read/write String
.
java.lang.String getEmbeddedFileLabel()
Returns the file name of embedded OLE object
java.lang.String getEmbeddedFileName()
Returns the path of embedded OLE object
boolean isObjectIcon()
Determines whether an object is visible as icon.
Read/write boolean
.
void setObjectIcon(boolean value)
Determines whether an object is visible as icon.
Read/write boolean
.
boolean isObjectLink()
Determines whether an object is linked to external file.
Read-only boolean
.
boolean getUpdateAutomatic()
Determines if the linked embedded object is automatically updated when the presentation is opened or printed.
Read/write boolean
.
void setUpdateAutomatic(boolean value)
Determines if the linked embedded object is automatically updated when the presentation is opened or printed.
Read/write boolean
.
java.lang.String getSubstitutePictureTitle()
Returns or sets the title for OleObject icon.
Read/write String
.
void setSubstitutePictureTitle(java.lang.String value)
Returns or sets the title for OleObject icon.
Read/write String
.
Copyright © 2004-2021 Aspose Pty Ltd. All Rights Reserved.