Show All

# Image Element

As a child of the Object element

Represents an image to be imported.

### Usage

    <Image backgroundImage="true">
      <File path="c:\wallpaper.png" />
    </Image>

### Element Information

Element base | ImageContent
Namespace | http://schemas.microsoft.com/office/onenote/2004/import
Schema name | SimpleImport

### Elements and Attributes

### Parent Elements

Element | Description
--- | ---
Object | Represents an object to be added, updated, or deleted from the specified page.

### Child Elements

None.

However, the element base, ImageContent, does contain child elements.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
backgroundImage | xsd:boolean | optional | Represents whether the image is a background image. | False True
height | PositiveDecimal | optional | Represents the height of the image in points. |
width | PositiveDecimal | optional | Represents the width of the image in points. |

### Definition

    <xsd:element name="Image">
      <xsd:complexType>
        <xsd:complexContent>
          <xsd:extension base="ImageContent">
            <xsd:attribute name="backgroundImage" type="xsd:boolean"
              default="false"/>
            <!-- Width and Height are also expressed in points. -->
            <xsd:attribute name="width" type="PositiveDecimal"/>
            <xsd:attribute name="height" type="PositiveDecimal"/>
          </xsd:extension>
        </xsd:complexContent>
      </xsd:complexType>
    </xsd:element>

As a child of the Outline element

Represents an image to be imported as part of an outline.

## Usage

    <Image align="left">
      <File path="c:\image.png" />
    </Image>

## Element Information

Element base | ImageContent
Namespace | http://schemas.microsoft.com/office/onenote/2004/import
Schema name | SimpleImport

## Elements and Attributes

### Parent Elements

Element | Description
--- | ---
Outline | Represents an outline to be imported. .

### Child Elements

None.

However, the element base, ImageContent, does contain child elements.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
align | xsd:string | optional | Represents whether the image is left, right, or center aligned. | center left right

## Definition

    <xsd:element name="Image">
    <xsd:complexType>
      <xsd:complexContent>
       <xsd:extension base="ImageContent">
        <xsd:attribute name="align">
         <xsd:simpleType>
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="left"/>
            <xsd:enumeration value="center"/>
            <xsd:enumeration value="right"/>
          </xsd:restriction>
         </xsd:simpleType>
        </xsd:attribute>
       </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
    </xsd:element>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp