瀏覽代碼

Added missing bookmark.cs, fixed CRLF endings

master
MadBoy_cp 12 年之前
父節點
當前提交
eac20f3cda
共有 2 個檔案被更改,包括 23 行新增11 行删除
  1. 12
    0
      DocX/Bookmark.cs
  2. 11
    11
      DocX/HelperFunctions.cs

+ 12
- 0
DocX/Bookmark.cs 查看文件

@@ -0,0 +1,12 @@
using System;
using System.Linq;
using System.Collections.Generic;
namespace Novacode
{
public class Bookmark
{
public string Name { get; set; }
public Paragraph Paragraph { get; set; }
}
}

+ 11
- 11
DocX/HelperFunctions.cs 查看文件

@@ -396,16 +396,16 @@ namespace Novacode
);
}
internal static XElement CreateTable(int rowCount, int columnCount)
{
int[] columnWidths = new int[columnCount];
for (int i = 0; i < columnCount; i++)
{
columnWidths[i] = 2310;
}
return CreateTable(rowCount, columnWidths);
}
internal static XElement CreateTable(int rowCount, int columnCount)
{
int[] columnWidths = new int[columnCount];
for (int i = 0; i < columnCount; i++)
{
columnWidths[i] = 2310;
}
return CreateTable(rowCount, columnWidths);
}
internal static XElement CreateTable(int rowCount, int[] columnWidths)
{
XElement newTable =
@@ -422,7 +422,7 @@ namespace Novacode
);
XElement tableGrid = new XElement(XName.Get("tblGrid", DocX.w.NamespaceName));
for (int i = 0; i < columnWidths.Length; i++)
for (int i = 0; i < columnWidths.Length; i++)
tableGrid.Add(new XElement(XName.Get("gridCol", DocX.w.NamespaceName), new XAttribute(XName.Get("w", DocX.w.NamespaceName), XmlConvert.ToString(columnWidths[i]))));
newTable.Add(tableGrid);

Loading…
取消
儲存