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

Public Types | |
| enum | { kBeginning = 0, kEnd = -2 } |
Public Types inherited from IListControlData | |
| enum | { kDefaultIID = IID_ILISTCONTROLDATA } |
Public Member Functions | |
| virtual void | Add (const T &item, int32 at=kEnd, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | Add (const K2Vector< T > &items, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | Replace (const T &item, int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual T | operator[] (int32 index) const =0 |
Public Member Functions inherited from IListControlData | |
| virtual void | Remove (int32 index, bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual void | Clear (bool16 invalidate=kTrue, bool16 notifyOfChange=kTrue)=0 |
| virtual int32 | Length () const =0 |
| virtual void | Refresh () const =0 |
| virtual void | Synchronize (SysControl sysControl) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Templated interface representing listbox data model.
| pure virtual |
Add an item to the list.
| item | entity to add to the list |
| at | position to add item at |
| invalidate | specifies whether control should be invalidated |
| notifyOfChange | specifies whether registered observers should be notified of this change to the data model |
Implemented in CListControlDataOf< T >, and DropDownListControlDataOf< T >.
| pure virtual |
Add a list of items to the list.
| items | collection of new items to add into list |
| invalidate | specifies whether control should be invalidated |
| notifyOfChange | specifies whether registered observers should be notified of this change to the data model |
Implemented in CListControlDataOf< T >, and DropDownListControlDataOf< T >.
| pure virtual |
Return the nth item.
Implemented in CListControlDataOf< T >, and DropDownListControlDataOf< T >.
| pure virtual |
Replace the nth item.
| item | specifies new item |
| index | specifies position where item to be replaced is |
| invalidate | specifies whether control should be invalidated |
| notifyOfChange | specifies whether registered observers should be notified of this change to the data model |
Implemented in CListControlDataOf< T >, and DropDownListControlDataOf< T >.