Aspose::Words::Layout::LayoutCollector::Clear method. Clears all collected layout data. Call this method after Document was manually updated, or layout was rebuilt in C++.... auto doc = System :: MakeObject < Aspose...Layout :: LayoutCollector > ( doc ); // Call the "GetNumPagesSpanned"...