Mobile Data StudioObject Model › PointCollection

The PointCollection class contains references to each Point object on a Page.

This collection can be obtained via the Page.Points property.

Enumerable

This class can be enumerated with a For Each loop.

Each enumerated item is a Point.

Indexable

This class can be indexed with an Integer index which must be between 1 and the Count property.

Returns the matching Point object.

Properties

Application

Returns the root Application.

Count

Returns the number of points on the page as an Integer.

Page

Returns the Page these points belong to.

Project

Returns the Project these points belong to.

Methods

AddFromXML

Adds a new point to the page, where the point is described by a chunk of XML.

Takes two parameters:

  • xml - a String containing an XML description of the point.
  • position - an Integer specifying the position of the new point on the page, where the first point is 1.

Returns the new Point object, populated with the xml.

Remove

Takes one parameter:

  • position - an Integer that is that position of the point to remove, where the first point is 1.