public void SetText(string text) { CT_P ctP = (ctTc.SizeOfPArray() == 0) ? ctTc.AddNewP() : ctTc.GetPArray(0); XWPFParagraph par = new XWPFParagraph(ctP, this); par.CreateRun().AppendText(text); }