| 1234567891011121314151617181920212223242526272829 |
- using System.Linq;
- using System.Collections.Generic;
- using System.Xml.Linq;
-
- namespace Novacode
- {
- public class Content : InsertBeforeOrAfter
- {
-
- public string Name { get; set; }
- public string Tag { get; set; }
- public string Text { get; set; }
- public List<Content> Sections { get; set; }
- public ContainerType ParentContainer;
-
-
- internal Content(DocX document, XElement xml, int startIndex)
- : base(document, xml)
- {
-
- }
-
- public void SetText(string newText)
- {
- Xml.Descendants(XName.Get("t", DocX.w.NamespaceName)).First().Value = newText;
- }
-
- }
- }
|