ForeignData

ForeignData class

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

Properties

NameTypeDescription
ImageDatabyte[]Represents image of ole object as byte array.
ObjectDatabyte[]Represents embedded ole object data as byte array.
ForeignTypeintData type. The value of the property is ForeignType integer constant.
ObjectTypeintIf the ForeignType attribute is “Object”, the ForeignData element must also have an ObjectType attribute. The value of t
ShowAsIconintThis attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL inte
ObjectWidthfloatThis attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the width of the o
ObjectHeightfloatThis attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the height of the
MappingModeintThis attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.
ExtentXfloatThis attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the me
ExtentYfloatThis attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the meta
CompressionTypeintThis attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, o
CompressionLevelfloatThis attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, o
Valuebyte[]Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap,
ObjectSourceFullNameStringReturns the source full name of the source file for the linked OLE object. Only supports setting the source full name wh

Methods

NameDescription
deepCloneCreates deep copy of this instance.

ForeignData.ImageData property

Represents image of ole object as byte array.

Type: byte[]

ForeignData.ObjectData property

Represents embedded ole object data as byte array.

Type: byte[]

ForeignData.ForeignType property

Data type. The value of the property is ForeignType integer constant.

Type: int

ForeignData.ObjectType property

If the ForeignType attribute is “Object”, the ForeignData element must also have an ObjectType attribute. The value of the property is ObjectType integer constant.

Type: int

ForeignData.ShowAsIcon property

This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL integer constant.

Type: int

ForeignData.ObjectWidth property

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.

Type: float

ForeignData.ObjectHeight property

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.

Type: float

ForeignData.MappingMode property

This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode.

Type: int

ForeignData.ExtentX property

This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the metafile.

Type: float

ForeignData.ExtentY property

This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the metafile.

Type: float

ForeignData.CompressionType property

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.

Type: int

ForeignData.CompressionLevel property

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 hundreds of a percent.

Type: float

ForeignData.Value property

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

Type: byte[]

ForeignData.ObjectSourceFullName property

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..

Type: String

deepClone()

Creates deep copy of this instance.