ソースを参照

Fixed a bug in Paragraph.AppendHyperlink(h) that caused any custom formatting to be applied to the runs before the Hyperlink instead of the Hyperlink itself. The below is now possible

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
coffeycathal_cp 15年前
コミット
37a584e15f
3個のファイルの変更2行の追加1行の削除
  1. 1
    1
      DocX/Paragraph.cs
  2. 1
    0
      DocX/_Enumerations.cs
  3. バイナリ
      DocX/bin/Debug/DocX.dll

+ 1
- 1
DocX/Paragraph.cs ファイルの表示

@@ -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;

+ 1
- 0
DocX/_Enumerations.cs ファイルの表示

@@ -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 }

バイナリ
DocX/bin/Debug/DocX.dll ファイルの表示


読み込み中…
キャンセル
保存