get_AllChildObjects Method

WRAPPER_API vector<DisplayObject> get_AllChildObjects() const
 

Description

Retrieves a list of all objects in this folder or any of its subfolders
 

Example

void DisplayFolder_Sample()

{

const GEOCALCPBW_NAMESPACE::DisplayFolder* pcsFolder = m_DataSource->get_DefaultView().GetFolder(

m_DataView->DataView::GetFolderIDByObjectType(GEOCALCPBW_NAMESPACE::GeoBase::ProjectedCoordSysType));

 

if (pcsFolder->HasSubFolders())

{

vector<long> subFolders = pcsFolder->get_SubFolderIDs();

}

 

if (pcsFolder->HasChildObjects())

{

vector<DisplayObject*> childObjects = pcsFolder->get_AllChildObjects();

}

}