Professional Documents
Culture Documents
Solution
Query the frame for IFrameType to find the type of frame you have
2. Call IPageItemTypeUtils to find the type of each page item, or query the page items for an IFrameType
interface.
Sample code
CHMLFiltHelper::collectGraphicFrames
Related APIs
IHierarchy
ISpread
Solution
2. In IFindChangeOptions, set object type to find, using kObjectSearchTypeCmdBoss. You can choose
from all frame types, graphic frames, and unassigned frames.
3. Set search scope using kScopeCmdBoss. The scope can be the current document, all open documents,
or within the current selection. Do not forget to explicitly set the IID_IFINDCHANGEMODEDATA
interface on the command bosses to IFindChangeOptions::kObjectSearch search mode.
4. Choose an object style to search, and prepare an attribute boss list to store graphic attributes that
your found page item should have. Then, set the find object style and find attribute list using
kFindChangeFormatCmdBoss.