# EnsurePageVerb complex Type

Defines a command to verify the specified page exists, and if it does not, create it. This includes creating any folders or sections specified in the file path that do not already exist.

You are required to pass OneNote a string representing the path to the desired page, as well as a GUID for that page. If the path is not fully-qualified, OneNote assumes the string starts from the notebook root location for the user. Additionally, you can specify the title, date, reading direction, and page placement relative to other pages in the notebook.

By default, OneNote inserts each new page at the end of the specified section. If you specify a page GUID for the insertAfter attribute, OneNote inserts the new page as a sub-page of the page whose GUID you specified. In such cases, the sub-page shares the title and date with the other pages in the page series.

## Type Information

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

## Elements and Attributes

### Child Elements

None.

### Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
guid | GUID | optional | Represents the GUID of the specified page. |
path | xsd:string | required | Represents the path to the specified page |
date | xsd:dateTime | optional | Represents the date and time the page was edited. |
insertAfter | GUID | optional | Represents the GUID of the page to insert the specified page as a sub-age of. |
RTL | xsd:boolean | optional | Represents whether the page reads right to left. | False True
title | xsd:string | optional | Represents the title of the specified page. |

## Definition

    <xsd:complexType name="EnsurePageVerb">
      <xsd:annotation>
        <xsd:documentation xml:lang="en">
          Ensures the existence of a section or page.
        </xsd:documentation>
      </xsd:annotation>
      <xsd:attribute name="path" type="xsd:string" use="required"/>
      <xsd:attribute name="guid" type="GUID" use="required"/>
      <xsd:attribute name="title" type="xsd:string"/>
      <xsd:attribute name="date" type="xsd:dateTime"/>
      <xsd:attribute name="RTL" type="xsd:boolean" default="false"/>
      <xsd:attribute name="insertAfter" type="GUID"/>
    </xsd:complexType>

©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