예제 #1
0
        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);
        }