internal object GetCellStyleProperty(StylePropertyAccessor getDelegate) { if (GetParentBook() == null) { return(getDelegate(Parent.FirstCell())); } XmlStyle style = GetParentBook().GetStyleByID(Parent.StyleID); return(getDelegate(style)); }
internal object GetCellStyleProperty(StylePropertyAccessor getDelegate) { if (GetParentBook() == null) { return getDelegate(Parent.FirstCell()); } XmlStyle style = GetParentBook().GetStyleByID(Parent.StyleID); return getDelegate(style); }
internal void SetCellStyleProperty(StylePropertyAccessor setDelegate) { if (GetParentBook() == null) { Parent.IterateAndApply(cell => setDelegate(cell)); } else { XmlStyle style = new XmlStyle(GetParentBook().GetStyleByID(Parent.StyleID)); setDelegate(style); Parent.StyleID = GetParentBook().AddStyle(style); } }