Beispiel #1
0
 public void AddCell(MHTCell cell)
 {
     if (!Cells.ContainsKey(cell.Index))
     {
         Cells.Add(cell.Index, cell);
     }
 }
Beispiel #2
0
 private uint SetMergerAcross(uint index, MHTCell cell)
 {
     if (cell.ColSpan > 0)
     {
         for (int i = 1; i <= cell.ColSpan; i++)
         {
             Cells.Add(index, new MHTCell(index, cell.Value));
             index++;
         }
     }
     return index;
 }
Beispiel #3
0
 private uint SetMergerAcross(uint index, MHTCell cell)
 {
     if (cell.ColSpan > 0)
     {
         for (int i = 1; i <= cell.ColSpan; i++)
         {
             Cells.Add(index, new MHTCell(index, cell.Value));
             index++;
         }
     }
     return(index);
 }
Beispiel #4
0
 public void AddCells(string row)
 {
     if (string.IsNullOrWhiteSpace(row)) return;
     uint index = Cells.Keys.IsEmpty() ? 0 : Cells.Keys.Max() + 1;
     foreach (Match cellx in TdReg.Matches(row))
     {
         if (!cellx.Success) continue;
         var cell = new MHTCell(index, cellx.Value);
         index = cell.Index;
         Cells.Add(index, cell);
         index++;
         index = SetMergerAcross(index, cell);
     }
 }
Beispiel #5
0
        public void AddCells(string row)
        {
            if (string.IsNullOrWhiteSpace(row))
            {
                return;
            }
            uint index = Cells.Keys.IsEmpty() ? 0 : Cells.Keys.Max() + 1;

            foreach (Match cellx in TdReg.Matches(row))
            {
                if (!cellx.Success)
                {
                    continue;
                }
                var cell = new MHTCell(index, cellx.Value);
                index = cell.Index;
                Cells.Add(index, cell);
                index++;
                index = SetMergerAcross(index, cell);
            }
        }
Beispiel #6
0
 public void AddCell(MHTCell cell)
 {
     if (!Cells.ContainsKey(cell.Index))
         Cells.Add(cell.Index, cell);
 }