This documentation is archived and is not being maintained.

EnsurePageVerb complex Type [OneNote 2003 XML Schema Reference]

Office 2003

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 DescriptionPossible Values
guid GUID optional Represents the GUID of the specified page.
pathxsd:stringrequiredRepresents the path to the specified page
datexsd:dateTimeoptionalRepresents the date and time the page was edited.
insertAfterGUIDoptionalRepresents the GUID of the page to insert the specified page as a sub-age of.
RTLxsd:booleanoptionalRepresents whether the page reads right to left.
  • False
  • True
titlexsd:stringoptionalRepresents 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>

		


Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp
Show: