The ICnrControlList class defines a collection of IContainerControl objects. The User Interface Class Library uses this class in the implementation of the class IContainerControl.
Use these functions to create an ICnrControlList object.
![]() |
public:
~ICnrControlList()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
ICnrControlList(const ICnrControlList&)
Use this constructor to create an object of this class from a pre-existing ICnrControlList object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
ICnrControlList()
Use this constructor to create an empty collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these functions to add and remove IContainerControl objects from the ICnrControlList collection.
![]() |
public:
bool add(IContainerControl * const& control)
Adds the given IContainerControl object as the last element of the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
removes all elements from the collection.
public:
unsigned long removeAll( bool ( * predicateFunction ) ( IContainerControl * const&, void * ) , void* data = 0 )
removes all elements from this collection for which the given function returns true. Additional arguments can be passed to the given predicate function using :xph.data.:exph.. This member function returns the number of elements removed.
Note:
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
unsigned long removeAll()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void removeAt(Cursor& cursor)
Removes the element at the given cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void replaceAt( const Cursor& cursor, IContainerControl * const& control )
Replaces the element at the given cursor with the given IContainerControl object.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Use these functions to search for elements in the ICnrControlList collection.
![]() |
public:
IContainerControl* elementAt(const Cursor& cursor) const
Returns the element pointed to by the given cursor.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool isEmpty() const
return true if the collection contains no elements.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned long numberOfElements() const
Returns the number of elements in the collection.
Windows | OS/2 | AIX |
Yes | Yes | Yes |