Sfoglia il codice sorgente

Added missing bookmark.cs, fixed CRLF endings

master
MadBoy_cp 12 anni fa
parent
commit
eac20f3cda
2 ha cambiato i file con 23 aggiunte e 11 eliminazioni
  1. 12
    0
      DocX/Bookmark.cs
  2. 11
    11
      DocX/HelperFunctions.cs

+ 12
- 0
DocX/Bookmark.cs Vedi File

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 Vedi File

); );
} }
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) internal static XElement CreateTable(int rowCount, int[] columnWidths)
{ {
XElement newTable = XElement newTable =
); );
XElement tableGrid = new XElement(XName.Get("tblGrid", DocX.w.NamespaceName)); 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])))); 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); newTable.Add(tableGrid);

Loading…
Annulla
Salva