Attach
Attaches a worksheet to the collection object.
BOOL Attach( Worksheet & wks, DWORD dwExcludeBits = 0 )
TRUE for success, otherwise return false.
EX1
void CollectionEmbeddedPages_Attach_Ex1() { Worksheet wks = Project.ActiveLayer(); if(!wks) return; CollectionEmbeddedPages embeddedPages; embeddedPages.Attach(wks); int nCount = embeddedPages.Count(); printf("%d pages embdded in a worksheet", nCount); }
origin.h