Vcl.OleCtnrs.TOleContainer.CreateLinkToFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateLinkToFile(const FileName: string; Iconic: Boolean);

C++

void __fastcall CreateLinkToFile(const System::UnicodeString FileName, bool Iconic);

Properties

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

Description

Creates a linked OLE object from the contents of a file.

Call CreateLinkToFile to create a linked OLE object from the file specified by the FileName parameter. Iconic specifies whether the object is shown as an icon (true) or displayed as it would be in the server application (false). If there is already an OLE object in the container, it is destroyed and any changes the user made to it are discarded.

See Also