public WorkbookExcelRender() { _workbook = new HSSFWorkbook(); _isDisposed = false; OddCellStyle = _workbook.CreateCellStyle(); EvenCellStyle = _workbook.CreateCellStyle(); OddCellStyleCenterAligned = _workbook.CreateCellStyle(); EvenCellStyleCenterAligned = _workbook.CreateCellStyle(); _nextCellIndex = -1; RTFHelper = new RTFHelper() { NegFont = _workbook.CreateFont(), NormalFont = _workbook.CreateFont(), PosFont = _workbook.CreateFont(), NegFontCrossed = _workbook.CreateFont(), NormalFontCrossed = _workbook.CreateFont(), PosFontCrossed = _workbook.CreateFont(), Pallete = _workbook.GetCustomPalette(), RTFRenderer = new RtfTextRender() }; InitDefaultRTFHelper(); InitDefaultCellStyles(); }
/// <summary> /// Clones this instance. /// </summary> /// <returns>RTFHelper object.</returns> public RTFHelper Clone() { RTFHelper tmp = new RTFHelper(); tmp.PosFont = PosFont; tmp.NegFont = NegFont; tmp.NormalFont = NormalFont; tmp.NormalFontCrossed = NormalFontCrossed; tmp.PosFontCrossed = PosFontCrossed; tmp.NegFontCrossed = NegFontCrossed; tmp.Pallete = Pallete; tmp.RTFRenderer = new RtfTextRender(); return tmp; }
public BlockExcelRender(object excelHelper) { _rtfHelper = (RTFHelper)excelHelper; }