ArcObjects Library Reference (Carto)  

IOleFrame Interface

Provides access to the members that control the Graphic Element that holds an OLE object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

IOleFrame is the default interface for the OleFrame object.  The main purpose of the interface is to give the developer access to the OLE object stored within the frame.  The developer can use this interface to display properties of the object, edit the object, or open it.

Members

Description
Method CreateOleClientItem Valid only in MFC environment. Initialize the internal COleClientItem. Pass in a pointer to the application's COleDocument.
Method Edit Edit the object in-place.
Method EditProperties Show the properties dialog for the object.
Method Hide Stop editing the object.
Read-only property OleClientItem Valid only in MFC environment. Returns pointer to the COleClientItem representing the OLE object.
Method Open Edit the object in a separate application window.

CoClasses that implement IOleFrame

CoClasses and Classes Description
OleFrame (esriArcMapUI) The OLE frame.

Remarks

While the interface IOleFrame is an ArcEngine level component, it is only implemented by OleFrame which is located in a non Engine library.  Engine/Server applications will not be able to display the contents of the frame.