Element Reference


 
<ForeignData> element

<ForeignData> element

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

Syntax

<ForeignData
    ForeignType = "enumeration"
    [ObjectType = "intval"]
    [ShowAsIcon = "boolval"] 
    [ObjectWidth = "floatval"]
    [ObjectHeight = "floatval"]
    [MappingMode = "intval"]
    [ExtentX = "floatval"]
    [ExtentY = "floatval"]>
</ForeignData>

Attributes

ForeignType

Required enumeration. May be one of the following values: MetaFile, EnhMetaFile, Bitmap, or Object.

ObjectType

Optional int. If the ForeignType attribute is "Object", then the ForeignData element must also have an ObjectType attribute. The ObjectType attribute is an integer value that may be a sum of the following values.

Value

Description

256

Linked object

512

Embedded object

1024

Control

16384

OLE2 Named

32768

OLE2 object

ShowAsIcon

Optional boolean. This attribute is only meaningful if the foreign data is an OLE2 embedded object.

Value

Description

0

Do not show embedded data as an icon.

1

Show embedded data as an icon.

ObjectWidth

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

ObjectHeight

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

MappingMode

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

ExtentX

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

ExtentY

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

Element information

Parent elements:

DocumentSheet, PageSheet, Shape, StyleSheet

Child elements:

None

See also

ForeignData property

ForeignType property

Page view tracker