Liquid XML Data Binder 2019
C++ Add - Collection
Liquid XML Data Binder (C++, Java, VB6) > Reference > C++ > Reference > CElementCol > C++ Add - Collection
XXXXClsPtr Add()
void Add(XXXXCls* pNewCls)
  Property Description  
    Method Name Add  
    Argument - pNewCls The class to add to the collection.  
    Returns The object that was added to the collection (see smart pointers)  
    Description Adds a class to the collection  
    Remarks If Add is called with no parameters then a new class is constructed and added to the collection, the new class is then returned.
Causes the OnCollectionChange to be fired, after the class is added.
Collections of abstract classes do not have the XXXXClsPtr Add() method, when using these you must explicitly create an instance and add it to the collection.