internal void Flush() { if (CellRecord != null) //We delay by one so we give time for formula records to read their string records. { Xls.OnVirtualCellRead(Xls, new VirtualCellReadEventArgs(new CellValue(Sheet, Row, Col, CellRecord.GetValue(CellList), CellRecord.XF))); CellRecord = null; } }
internal void Read(int aSheet, int aRow, int aCol, TCellRecord aRecord) { Flush(); Sheet = aSheet; Row = aRow; Col = aCol; CellRecord = aRecord; }
protected override TBaseRecord DoCopyTo(TSheetInfo SheetInfo) { return(new TCellRecordWrapper((TCellRecord)TCellRecord.Clone(CellRecord, SheetInfo), FRow)); }
internal TCellRecordWrapper(TCellRecord aCellRecord, int aRow) { FRow = aRow; CellRecord = aCellRecord; }
internal override bool CanJoinNext(TCellRecord NextRecord, int MaxCol) { TRKRecord b = (NextRecord as TRKRecord); return(b != null && b.Col == Col + 1 && b.Col <= MaxCol); }