public void OnCell(ICell cell, ICellWalkContext ctx) { if (_valuesEnumerator.MoveNext()) { NPOIUtils.SetCellValue(cell, _valuesEnumerator.Current); } else { NPOIUtils.SetCellValue(cell, null); } }
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)); }
public void OnCell(ICell cell, ICellWalkContext ctx) { _cells.Add(NPOIUtils.GetCellValue(cell)); }
public void OnCell(ICell cell, ICellWalkContext ctx) { ++cellsVisited; ordinalNumberSum += ctx.OrdinalNumber; }
public void OnCell( ICell cell, ICellWalkContext ctx ) { if( _valuesEnumerator.MoveNext() ) NPOIUtils.SetCellValue( cell, _valuesEnumerator.Current ); else NPOIUtils.SetCellValue( cell, null ); }
public void OnCell( ICell cell, ICellWalkContext ctx ) { _cells.Add( NPOIUtils.GetCellValue( cell ) ); }