|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOleFrame
Provides access to the members that control the Graphic Element that holds an OLE object.
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.
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.
com.esri.arcgis.carto.OleFrame
Method Summary | |
---|---|
void |
createOleClientItem(int oleDocument)
Valid only in MFC environment. |
void |
edit()
Edit the object in-place. |
boolean |
editProperties()
Show the properties dialog for the object. |
void |
getOleClientItem()
Valid only in MFC environment. |
void |
hide()
Stop editing the object. |
void |
open()
Edit the object in a separate application window. |
Method Detail |
---|
void getOleClientItem() throws IOException, AutomationException
OleClientItem is valid only in the MFC (Microsoft Foundation Classes) environment. The property can be used to return a pointer to the COleClientItem representing the OLE object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void createOleClientItem(int oleDocument) throws IOException, AutomationException
OleClientItem is valid only in the MFC (Microsoft Foundation Classes) environment. The method is used to initialize the internal COleClientItem. Pass in a pointer to the application's COleDocument when executing the method.
oleDocument
- A COM void* (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void open() throws IOException, AutomationException
The Open method is used to open the OLE object in a separate window. Use this method when you want to open the OLE object in its native environment. For instance, if the OLE object is a Word document, executing the Open method will start Word with the current object as the active document.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void edit() throws IOException, AutomationException
The Edit method is used to edit the OLE object in place. Editing takes place with the frame defined for the object and no additional windows are created. In contrast, the Open method will open up a separate window for editing the object.
Use this method to provide editing capabilities for the OLE object without opening an additional window. Execute the Hide method to stop editing on the object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void hide() throws IOException, AutomationException
The Hide method is used to stop the editing process on the OLE object. The method should be executed after the Edit method has been utilized and the user has completed editing.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean editProperties() throws IOException, AutomationException
The EditProperties method is used to display the properties of the OLE object in a separate window. Use this method when you want the user to see the properties of the object in the frame.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |