Shapes (Collection)

Member of:

DashboardSection object

Description:

Represents all graphic objects in a Dashboard tab.

Objects included in the Shapes (Collection) are:

Tip:

All collections have the “Item(NameOrIndex)” method. This is the default method for all collections that returns collection items at a particular index or by name. Use brackets ([]) to represent calls to the Item (Method). For example, these statements are identical: myItem = Documents[1] myItem = Documents.Item(1) myItem = Documents["StartUp.bqy"] myItem = Documents.Item("StartUp.bqy")

Example:

This example writes the number of shapes in a report section to the Console window:

Console.Writeln(ActiveDocument.Sections["Report"].Body.Shapes.Count)

Methods:

Item(Value as NameOrIndex) As Shape

Properties:

Read-only: Property Count As Number