Share via


OLETypeAllowed Property

Returns the type of OLE object (embedded or linked) contained in a control. Read-only at design time and run time.

Control.OLETypeAllowed[ = nValue]

Property Values

  • nValue
    Returns a value that indicates the type of OLE object (embedded or linked) contained in a control. Possible values are 0 (Linked), 1 (Embedded), –1 (an OLE Bound control that does not contain an OLE object), and –2 (ActiveX control (.ocx)).

Remarks

OLETypeAllowed is only useful when you specify a setting for the DocumentFile property.

Note   You can set the OLETypeAllowed property in code to create a linked OLE object using the DEFINE CLASS command.

See Also

DEFINE CLASS | DocumentFile Property

Applies To: OLE Bound Control | OLE Container Control