Visual Basic: RichTextBox Control
An OLEObjects collection contains a collection of OLEObject objects.
The OLEObjects collection syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
|index||The value of either the Index property or the Key property which uniquely identifies the OLEObject object.|
Every embedded OLE object created in the RichTextBox control is represented in the OLEObjects collection. You can manually add objects to the OLEObjects collection at run time by using the Add method, or by dragging an object from the Windows Explorer into the RichTextBox control.
The OLEObjects collection is a standard collection and supports the Add, Item, and Remove methods, as well as the Count property.