Пример #1
0
 public void OnCell(ICell cell, ICellWalkContext ctx)
 {
     if (_valuesEnumerator.MoveNext())
     {
         NPOIUtils.SetCellValue(cell, _valuesEnumerator.Current);
     }
     else
     {
         NPOIUtils.SetCellValue(cell, null);
     }
 }
Пример #2
0
            public void OnCell(ICell cell, ICellWalkContext ctx)
            {
                double pointValue = GetOrEvalCellValue(cell);

                /* Silently ignore non-numeric values.
                * This is Office default behaviour. */
                if (Double.IsNaN(pointValue))
                {
                    return;
                }

                CT_NumVal point = this.ctNumData.AddNewPt();

                point.idx = (uint)ctx.OrdinalNumber;
                point.v   = (NumberToTextConverter.ToText(pointValue));
            }
Пример #3
0
 public void OnCell(ICell cell, ICellWalkContext ctx)
 {
     _cells.Add(NPOIUtils.GetCellValue(cell));
 }
Пример #4
0
 public void OnCell(ICell cell, ICellWalkContext ctx)
 {
     ++cellsVisited;
     ordinalNumberSum += ctx.OrdinalNumber;
 }
Пример #5
0
 public void OnCell( ICell cell, ICellWalkContext ctx )
 {
     if( _valuesEnumerator.MoveNext() )
         NPOIUtils.SetCellValue( cell, _valuesEnumerator.Current );
     else
         NPOIUtils.SetCellValue( cell, null );
 }
Пример #6
0
 public void OnCell( ICell cell, ICellWalkContext ctx )
 {
     _cells.Add( NPOIUtils.GetCellValue( cell ) );
 }
Пример #7
0
            public void OnCell(ICell cell, ICellWalkContext ctx)
            {
                double pointValue = GetOrEvalCellValue(cell);
                /* Silently ignore non-numeric values.
                 * This is Office default behaviour. */
                if (Double.IsNaN(pointValue))
                {
                    return;
                }

                CT_NumVal point = this.ctNumData.AddNewPt();
                point.idx = (uint)ctx.OrdinalNumber;
                point.v = (NumberToTextConverter.ToText(pointValue));
            }
Пример #8
0
 public void OnCell(ICell cell, ICellWalkContext ctx)
 {
     ++cellsVisited;
     ordinalNumberSum += ctx.OrdinalNumber;
 }