Vcl.OleCtnrs.TOleContainer.Close

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Close;

C++

void __fastcall Close();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.OleCtnrs.pas
Vcl.OleCtnrs.hpp
Vcl.OleCtnrs TOleContainer

Description

Deactivates the OLE object.

Call Close to deactivate the OLE object and terminate its server application, without removing it from the container. Any changes the user made to the OLE object are automatically saved. After calling Close, the container's State property is osLoaded.

Note: If Close is called when no OLE object is loaded, TOleContainer raises an exception.

See Also