示例#1
0
 // 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
 // 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
 public static Row New(XElementData data, int index, ISheetData sheetData)
 {
     return(new Row(data, index, sheetData));
 }
示例#4
0
 public static Row FromExisting(XElementData data, ISheetData sheetData)
 {
     return(new Row(data, sheetData));
 }