コード例 #1
0
ファイル: Row.cs プロジェクト: zbra-solutions/excel-utility
 // existing rows constructor
 private Row(XElementData data, ISheetData sheetData)
 {
     this.Data      = data;
     this.sheetData = sheetData;
     Index          = int.Parse(data["r"], NumberFormatInfo.InvariantInfo);
     data.RemoveAttribute("spans"); // clear spans attribute, will be recalculated
 }
コード例 #2
0
ファイル: Row.cs プロジェクト: zbra-solutions/excel-utility
 // new rows constructor
 private Row(XElementData data, int index, ISheetData sheetData)
 {
     if (index == 0)
     {
         throw new ArgumentException("Row index can't be zero (0)", "index");
     }
     this.Data      = data;
     this.sheetData = sheetData;
     Index          = index;
     data.SetAttributeValue("r", index);
 }
コード例 #3
0
ファイル: Row.cs プロジェクト: zbra-solutions/excel-utility
 public static Row New(XElementData data, int index, ISheetData sheetData)
 {
     return(new Row(data, index, sheetData));
 }
コード例 #4
0
ファイル: Row.cs プロジェクト: zbra-solutions/excel-utility
 public static Row FromExisting(XElementData data, ISheetData sheetData)
 {
     return(new Row(data, sheetData));
 }