public void SetSheet(Sheet sheet) { _sheet = sheet; // Initialize _txtrun object. // (We can't do it in the constructor because the sheet // is not assigned then, it's only built once we have // all the records) TextRun tx = GetTextRun(); if (tx != null) { // Supply the sheet to our child RichTextRuns tx.SetSheet(_sheet); RichTextRun[] rt = tx.GetRichTextRuns(); for (int i = 0; i < rt.Length; i++) { rt[i].supplySlideShow(_sheet.GetSlideShow()); } } }