Navigation:  Interfaces (Technical API Reference) > IWPTextCursor (Text creation and cursor positioning) > Methods >

CPOpenObj Method

Previous pageReturn to chapter overviewNext page

Applies to

IWPTextCursor

Declaration

function CPOpenObj(ObjTypMask: Integer): IWPTextObj;

Description

Checks which objects are open at the current position. Returns a IWPTextObj interface or null if no object is found. Use ObjTypMask=0 it will find any open object, otherwise the specified object type must match.

Note: Please don't forget to call ReleaseInt() with the returned interface at the end of your code.