aspose.diagram
Class ForeignData

Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Property Getters/Setters Summary
functiongetCompressionLevel()
functionsetCompressionLevel(value)
           This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the level of compression applied to the file. Compression level is measured in hundreths of a percent.
functiongetCompressionType()
functionsetCompressionType(value)
           This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the type of compression applied to the file. The value of the property is CompressionType integer constant.
functiongetExtentX()
functionsetExtentX(value)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.
functiongetExtentY()
functionsetExtentY(value)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.
functiongetForeignType()
functionsetForeignType(value)
           Data type. The value of the property is ForeignType integer constant.
functiongetImageData()
functionsetImageData(value)
           Represents image of ole object as byte array.
functiongetMappingMode()
functionsetMappingMode(value)
           This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.
functiongetObjectData()
functionsetObjectData(value)
           Represents embedded ole object data as byte array.
functiongetObjectHeight()
functionsetObjectHeight(value)
           This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the height of the object in page units.
functiongetObjectSourceFullName()
functionsetObjectSourceFullName(value)
           Returns the source full name of the source file for the linked OLE object.
functiongetObjectType()
functionsetObjectType(value)
           If the ForeignType attribute is "Object", the ForeignData element must also have an ObjectType attribute. The value of the property is ObjectType integer constant.
functiongetObjectWidth()
functionsetObjectWidth(value)
           This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the width of the object in page units.
functiongetShowAsIcon()
functionsetShowAsIcon(value)
           This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL integer constant.
functiongetValue()
functionsetValue(value)
           Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
 
Method Summary
functiondeepClone()
           Creates deep copy of this instance.
 

Property Getters/Setters Detail

getImageData/setImageData : byte[] 

function getImageData() / function setImageData(value)
Represents image of ole object as byte array.

getObjectData/setObjectData : byte[] 

function getObjectData() / function setObjectData(value)
Represents embedded ole object data as byte array.

getForeignType/setForeignType : Number 

function getForeignType() / function setForeignType(value)
Data type. The value of the property is ForeignType integer constant.

getObjectType/setObjectType : Number 

function getObjectType() / function setObjectType(value)
If the ForeignType attribute is "Object", the ForeignData element must also have an ObjectType attribute. The value of the property is ObjectType integer constant.

getShowAsIcon/setShowAsIcon : Number 

function getShowAsIcon() / function setShowAsIcon(value)
This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL integer constant.

getObjectWidth/setObjectWidth : Number 

function getObjectWidth() / function setObjectWidth(value)
This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the width of the object in page units.

getObjectHeight/setObjectHeight : Number 

function getObjectHeight() / function setObjectHeight(value)
This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the height of the object in page units.

getMappingMode/setMappingMode : Number 

function getMappingMode() / function setMappingMode(value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.

getExtentX/setExtentX : Number 

function getExtentX() / function setExtentX(value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.

getExtentY/setExtentY : Number 

function getExtentY() / function setExtentY(value)
This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.

getCompressionType/setCompressionType : Number 

function getCompressionType() / function setCompressionType(value)
This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the type of compression applied to the file. The value of the property is CompressionType integer constant.

getCompressionLevel/setCompressionLevel : Number 

function getCompressionLevel() / function setCompressionLevel(value)
This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, or GIF file. The value indicates the level of compression applied to the file. Compression level is measured in hundreths of a percent.

getValue/setValue : byte[] 

function getValue() / function setValue(value)
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

getObjectSourceFullName/setObjectSourceFullName : String 

function getObjectSourceFullName() / function setObjectSourceFullName(value)
Returns the source full name of the source file for the linked OLE object. Only supports setting the source full name when the file type is OleFileType.Unknown. Such as wav file ,avi file..etc..

Method Detail

deepClone

function deepClone()
Creates deep copy of this instance.
Returns:

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.