HasChildObjects Method

WRAPPER_API bool HasChildObjects() const

 

Description

Returns true if the folder contains objects, false otherwise.

 

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();

}

}