Paragraph p = document.InsertParagraph();
p.Append("Check out this ").Color(Color.Red).AppendHyperlink(h).Color(Color.Green).Append(", it's really cool").Color(Color.Blue);
master
| @@ -1891,7 +1891,7 @@ namespace Novacode | |||
| Xml.Add(h.Xml); | |||
| Xml.Elements().Last().SetAttributeValue(DocX.r + "id", rel.Id); | |||
| this.runs = Xml.Elements(XName.Get("r", DocX.w.NamespaceName)).Reverse().Take(h.Xml.Elements(XName.Get("r", DocX.w.NamespaceName)).Count()).ToList(); | |||
| this.runs = Xml.Elements().Last().Elements(XName.Get("r", DocX.w.NamespaceName)).ToList(); | |||
| BuildRunLookup(Xml); | |||
| return this; | |||
| @@ -5,6 +5,7 @@ using System.Text; | |||
| namespace Novacode | |||
| { | |||
| public enum Orientation { Portrait, Landscape }; | |||
| public enum XmlDocument { Main, HeaderOdd, HeaderEven, HeaderFirst, FooterOdd, FooterEven, FooterFirst }; | |||
| public enum MatchFormattingOptions { ExactMatch, SubsetMatch}; | |||
| public enum Script { superscript, subscript, none } | |||