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); } }