Vcl.OleCtnrs.TOleContainer.CreateObject
Delphi
procedure CreateObject(const OleClassName: string; Iconic: Boolean);
C++
void __fastcall CreateObject(const System::UnicodeString OleClassName, bool Iconic);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.OleCtnrs.pas Vcl.OleCtnrs.hpp |
Vcl.OleCtnrs | TOleContainer |
Description
Creates an embedded OLE object given its class name (also known as programmatic identifier).
Call CreateObject to create an OLE object using the class name (also known as programmatic identifier) specified by the OleClassName parameter. The Iconic parameter indicates whether the object is shown as an icon (true) or displayed as it would be in the server application (false). If there's already an OLE object in the container, it is destroyed and any changes the user made to it are discarded.