Mobile Data Studio › Object Model › PageCollection
The PageCollection class contains references to each Page object in a Project.
This collection can be obtained via the Project.Pages property.
Enumerable
This class can be enumerated with a For Each loop.
Each enumerated item is a Page.
Indexable
This class can be indexed with an Integer index which must be between 1 and the Count property.
Returns the matching Page object.
Properties
Application
Returns the root Application.
Count
Returns the number of pages in the project as an Integer.
Project
Returns the Project these pages belong to.
Methods
Add
Adds a new, empty page to the project.
Takes one parameter:
- number - an Integer specifying the page number of the new page, where the first page is 1.
Returns an empty Page object.
AddFromXML
Adds a new page to the project, where the page and any points on it are described by a chunk of XML.
Takes two parameters:
- xml - a String containing an XML description of the page, possibly including points.
- number - an Integer specifying the page number of the new page, where the first page is 1.
Returns the new Page object, populated from the xml.
Remove
Removes an existing page from the project.
Takes one parameter:
- number - an Integer that is the page number to remove, where the first page is 1.