소스 검색

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…
취소
저장