Newer
Older
ClosedXML / ClosedXML_Net3.5 / Excel / Style / XLStylizedEmpty.cs
@Amir Amir on 9 Sep 2016 846 bytes Project hierarchy cleanup
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClosedXML.Excel
{
    internal class XLStylizedEmpty: IXLStylized
    {
        public XLStylizedEmpty(IXLStyle defaultStyle)
        {
            Style = defaultStyle;
        }
        public IXLStyle Style { get; set; }
        
        public IEnumerable<IXLStyle> Styles
        {
            get
            {
                UpdatingStyle = true;
                yield return Style;
                UpdatingStyle = false;
            }
        }

        public bool UpdatingStyle { get; set; }

        public IXLStyle InnerStyle { get; set; }

        public IXLRanges RangesUsed
        {
            get { return new XLRanges(); }
        }

        public bool StyleChanged { get; set; }
    }
}