This document is archived and information here might be outdated.  Recommended version.

IOleFrame Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IO > IOleFrame Interface
ArcGIS Developer Help

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.


Name 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.

Classes that implement IOleFrame

Classes Description
OleFrame (esriArcMapUI) The OLE frame.


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.

See Also

OleFrame Class