public ContentStyle SetStyle(ContentStyle style) { var oldStyle = new ContentStyle(Style); Style.Assign(style); /*if (CurrentCell != null) * { * var cellStyle = GetStyle(Style); * if (cellStyle == null) * { * cellStyle = GetCellStyle(); * SetStyle(cellStyle, Style); * } * CurrentCell.CellStyle = cellStyle; * }*/ return(oldStyle); }