Visual Basic: RichTextBox Control

OLEObjects Collection

See Also Example Properties Methods Events

An OLEObjects collection contains a collection of OLEObject objects.

Syntax

object.OLEObjects(index)

object.OLEObjects.Item(index)

The OLEObjects collection syntax has these parts:

Part Description
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.

Remarks

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.