ForeignData
ForeignData class
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
Properties
| Name | Type | Description |
|---|---|---|
| ImageData | byte[] | Represents image of ole object as byte array. |
| ObjectData | byte[] | Represents embedded ole object data as byte array. |
| ForeignType | int | Data type. The value of the property is ForeignType integer constant. |
| ObjectType | int | If the ForeignType attribute is “Object”, the ForeignData element must also have an ObjectType attribute. The value of t |
| ShowAsIcon | int | This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value of the property is BOOL inte |
| ObjectWidth | float | This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the width of the o |
| ObjectHeight | float | This attribute is only meaningful if the foreign data is an OLE2 embedded object. The value expresses the height of the |
| MappingMode | int | This attribute is only meaningful if the foreign data is a metafile. The value indicates the metafile mapping mode. |
| ExtentX | float | This attribute is only meaningful if the foreign data is a metafile. The value indicates the horizontal extent of the me |
| ExtentY | float | This attribute is only meaningful if the foreign data is a metafile. The value indicates the vertical extent of the meta |
| CompressionType | int | This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, o |
| CompressionLevel | float | This attribute is only meaningful if the foreign data is a raster-based foreign object, such as a DIB, JPG, PNG, TIFF, o |
| Value | byte[] | Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, |
| ObjectSourceFullName | String | Returns the source full name of the source file for the linked OLE object. Only supports setting the source full name wh |
Methods
| Name | Description |
|---|---|
| deepClone | Creates 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.