ForeignData element (ShapeSheet_Type complexType) (Visio XML)

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

Element information

Value
Element type
ForeignData_Type
Namespace
http://schemas.microsoft.com/office/visio/2012/main
Schema file
VisioSchema15.xsd
Document parts
page#.xml, master#.xml

Definition

< xs:element name="ForeignData" type="ForeignData_Type" minOccurs="0" maxOccurs="1" >
</xs:element >

Elements and attributes

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Parent elements

Element Type Description
Shape
ShapeSheet_Type
Contains elements that define a shape in a Master, Page, or group shape element.

Child elements

Element Type Description
Rel
Rel_Type
Specifies a relationship to a part containing the image data.

Attributes

Attribute Type Required Description Possible values
CompressionLevel
xsd:double
optional
Specifies the level of compression applied to the file. 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. Values of the xsd:double type.
CompressionType
xsd:token
optional
Specifies the type of compression applied to the file. 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
Values of the xsd:token type.
ExtentX
xsd:double
optional
Specifies the horizontal extent of the metafile. This attribute is only meaningful if the foreign data is a metafile. Values of the xsd:double type.
ExtentY
xsd:double
optional
Specifies the vertical extent of the metafile. This attribute is only meaningful if the foreign data is a metafile. Values of the xsd:double type.
ForeignType
xsd:token
required
Indicates metafile, EnhMetaFile, Bitmap, Object, or Ink type. Values of the xsd:token type.
MappingMode
xsd:unsignedShort
optional
Specifies the metafile mapping mode. This attribute is only meaningful if the foreign data is a metafile. Values of the xsd:unsignedShort type.
ObjectHeight
xsd:double
optional
Specifies the height of the object in page units. This attribute is only meaningful if the foreign data is an OLE2 embedded object. Values of the xsd:double type.
ObjectType
xsd:unsignedInt
optional
An integer indicator of object type. Used when Foreign type is object. Values of the xsd:unsignedInt type.
ObjectWidth
xsd:double
optional
Specifies the width of the object in page units. This attribute is only meaningful if the foreign data is an OLE2 embedded object. Values of the xsd:double type.
ShowAsIcon
xsd:boolean
optional
Indicates whether to show or not show embedded data as an icon. Values of the xsd:boolean type.