Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829
  1. using System.Linq;
  2. using System.Collections.Generic;
  3. using System.Xml.Linq;
  4. namespace Novacode
  5. {
  6. public class Content : InsertBeforeOrAfter
  7. {
  8. public string Name { get; set; }
  9. public string Tag { get; set; }
  10. public string Text { get; set; }
  11. public List<Content> Sections { get; set; }
  12. public ContainerType ParentContainer;
  13. internal Content(DocX document, XElement xml, int startIndex)
  14. : base(document, xml)
  15. {
  16. }
  17. public void SetText(string newText)
  18. {
  19. Xml.Descendants(XName.Get("t", DocX.w.NamespaceName)).First().Value = newText;
  20. }
  21. }
  22. }