Represents all graphic objects in a Dashboard tab.
Objects included in the Shapes (Collection) are:
CommandButton
RadarChart
PieChart
LineChart
FunnelChart
BlockChart
BarChart
TrafficLight
Thermometer
Bullet
Speedometer
Slider
HyperLink
EmbeddedBrowser
TextBox
DropDown
ListBox
RadioButton
CommandButton
Picture
TextLabel
Oval
RoundRect
VtLine
HzLine
Line
Rect
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") |
This example writes the number of shapes in a report section to the Console window:
Console.Writeln(ActiveDocument.Sections["Report"].Body.Shapes.Count)