ContentsAllowed

Applies to

OLE controls

Description

Specifies whether the OLE object in the control must be embedded or linked or whether either type of OLE object can be inserted at runtime.

Usage

In a painter

To set the ContentsAllowed property:

  • Select the desired option from the Contents drop-down list on the General page of the control's property page.

    Choices are Any, Embedded, or Linked.

In scripts

The datatype of the ContentsAllowed property is omContentsAllowed. The following example sets the value of the ContentsAllowed property to linked:

ole_1.ContentsAllowed = ContainsLinkedOnly!