Multiple objects Text |
Used for attaching text to an object and modifying the associated text properties.
The Text object is used to define and format text for objects that support a Text object.
Each Bot or Cell object has its own Text object. Text object properties and methods can be accessed from collection objects too (such as a Group). Text properties are write-only when accessed from a collection and when altered, affect all objects in the respective collection.
The Caption property is the default property for the Text object.
The following example sets each Bot object's text to display the Bot object's direction.
Bots.Shape.Icon = vbtCircle
Bots.Text.Size = 8
For Each Bot In Bots
Bot.Text.Caption = Bot.Dir
Next Bot