![]() | InDesign SDK 20.5 |
#include <IPageItemAdornmentList.h>

Public Types | |
| enum | IteratorType { kNormalIterator, kHandleIterator } |
Public Member Functions | |
| virtual void | AddAdornment (IPMUnknown *pAdorn)=0 |
| virtual IPMUnknown * | GetNextAdornment ()=0 |
| virtual int32 | GetNumberOfAdornments ()=0 |
| virtual bool32 | HasAdornment (ClassID classID)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is a better way to do iterations on the list. If you use the iteration mechanism that is global to the list, it is possible that some procedure you call will do an iteration itself and mess up the state of your iteration. This iterator makes a copy of the list of adornments that satisfy the iteration criteria, so that it won't get reset in the middle of the iteration.
| pure virtual |
Add an adornment to the current list.
| *pAdorn | - The adornment to be added (must be on a boss that has an IAdornmentShape interface |
| pure virtual |
Returns the next adornment in the list and increments the position
| pure virtual |
Returns the number of adorments in the list.
| pure virtual |
Finds the adornment by class ID, if one exists.
| classID | IN The class ID for which to look |