2.3.4.2.52 ForeignData_Type

Target namespace: http://schemas.microsoft.com/office/visio/2011/1/core

Referenced by: ShapeSheet_Type

A complex type that specifies the image of a shape.

Child Elements:

Rel: A Rel_Type element that specifies a relationship to a part containing the image data.

Attributes:

ForeignType: An xsd:token ([XMLSCHEMA2] section 3.3.2) attribute that specifies the type of the image. It MUST be equal to a value from the following table.

Value

Meaning

Bitmap

The format of the image specified by the Rel child element is bitmap (BMP), Graphics Interchange Format (GIF), Joint Photographic Experts Group (JPEG), Portable Network Graphics (PNG) or TIFF.

EnhMetaFile

The format of the image specified by the Rel child element is enhanced metafile format (EMF).

Ink

The image specified by the Rel child element is unused and the containing shape is invisible.

Object

The format of the image specified by the Rel child element is unsupported. If the unsupported part itself has a relationship to a fallback image part and the format of the fallback image is bitmap (BMP), enhanced metafile format (EMF), Graphics Interchange Format (GIF), Joint Photographic Experts Group (JPEG), Portable Network Graphics (PNG) or TIFF, that fallback image will be used as the image of the shape; otherwise, the unsupported part MUST be ignored and the containing shape is invisible.

ObjectType: An xsd:unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that is unused and MUST be ignored.

ShowAsIcon: An xsd:boolean ([XMLSCHEMA2] section 3.2.2) attribute that is unused and MUST be ignored.

ObjectWidth: An xsd:double ([XMLSCHEMA2] section 3.2.5) attribute that is unused and MUST be ignored.

ObjectHeight: An xsd:double ([XMLSCHEMA2] section 3.2.5) attribute that is unused and MUST be ignored.

MappingMode: An xsd:unsignedShort ([XMLSCHEMA2] section 3.3.23) attribute that is unused and MUST be ignored.

ExtentX: An xsd:double ([XMLSCHEMA2] section 3.2.5) attribute that is unused and MUST be ignored.

ExtentY: An xsd:double ([XMLSCHEMA2] section 3.2.5) attribute that is unused and MUST be ignored.

CompressionType: An xsd:token ([XMLSCHEMA2] section 3.3.2) attribute that is unused and MUST be ignored.

CompressionLevel: An xsd:double ([XMLSCHEMA2] section 3.2.5) attribute that is unused and MUST be ignored.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

 <xsd:complexType name="ForeignData_Type" mixed="true">
   <xsd:sequence>
     <xsd:element name="Rel" type="Rel_Type" minOccurs="1" maxOccurs="1"/>
   </xsd:sequence>
   <xsd:attribute name="ForeignType" type="xsd:token" use="required"/>
   <xsd:attribute name="ObjectType" type="xsd:unsignedInt"/>
   <xsd:attribute name="ShowAsIcon" type="xsd:boolean"/>
   <xsd:attribute name="ObjectWidth" type="xsd:double"/>
   <xsd:attribute name="ObjectHeight" type="xsd:double"/>
   <xsd:attribute name="MappingMode" type="xsd:unsignedShort"/>
   <xsd:attribute name="ExtentX" type="xsd:double"/>
   <xsd:attribute name="ExtentY" type="xsd:double"/>
   <xsd:attribute name="CompressionType" type="xsd:token"/>
   <xsd:attribute name="CompressionLevel" type="xsd:double"/>
 </xsd:complexType>