瀏覽代碼

DOCX in china #57

Added unit test Test_Table_SetTableDesignNone() draft. Requires fix in Tables.
master
PrzemyslawKlys 9 年之前
父節點
當前提交
299680c4c0
共有 5 個文件被更改,包括 24 次插入0 次删除
  1. 1
    0
      DocX/Paragraph.cs
  2. 二進制
      DocX/bin/Debug/DocX.dll
  3. 二進制
      DocX/bin/Release/DocX.dll
  4. 二進制
      Documentation/Help/Documentation.chm
  5. 23
    0
      UnitTests/DocXUnitTests.cs

+ 1
- 0
DocX/Paragraph.cs 查看文件

@@ -3014,6 +3014,7 @@ namespace Novacode
new XAttribute(XName.Get("ascii", DocX.w.NamespaceName), fontFamily.Name),
new XAttribute(XName.Get("hAnsi", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("cs", DocX.w.NamespaceName), fontFamily.Name), // Added by Maurits Elbers to support non-standard characters. See http://docx.codeplex.com/Thread/View.aspx?ThreadId=70097&ANCHOR#Post453865
new XAttribute(XName.Get("eastAsia", DocX.w.NamespaceName), fontFamily.Name) // DOCX in china #57
}
);

二進制
DocX/bin/Debug/DocX.dll 查看文件


二進制
DocX/bin/Release/DocX.dll 查看文件


二進制
Documentation/Help/Documentation.chm 查看文件


+ 23
- 0
UnitTests/DocXUnitTests.cs 查看文件

@@ -1594,6 +1594,29 @@ namespace UnitTests
}
}
[Test]
public void Test_Table_SetTableDesignNone()
{
using (DocX document = DocX.Create(Path.Combine(_directoryDocuments, "TablesDesign.docx")))
{
//Add A table
Table t = document.AddTable(2, 3);
Table t1 = document.InsertTable(t);
t1.Design = TableDesign.None;
// requires FIX for .None/.Custom set in a row
// t1.Design = TableDesign.None;
// t1.Design = TableDesign.Custom;
t1.Design = TableDesign.Custom;
t1.Design = TableDesign.ColorfulGrid;
t1.Design = TableDesign.ColorfulGrid;
t1.MergeCellsInColumn(1, 0, 1);
t1.InsertRow();
t1.Rows[2].MergeCells(1, 3);
t1.InsertRow(3);
document.Save();
}
}
[Test]
public void Test_Document_ApplyTemplate()
{

Loading…
取消
儲存