public void SetText(string value, int pos) { int num = this.run.SizeOfTArray(); if (pos > num) { throw new IndexOutOfRangeException("Value too large for the parameter position in XWPFrun.Text=(String value,int pos)"); } CT_Text xs = pos >= num || pos < 0 ? this.run.AddNewT() : this.run.GetTArray(pos); xs.Value = value; XWPFRun.preserveSpaces(xs); }