public void SetCStyle(CStyle style) { foreach (var range in Ranges) { range.SetCStyle(style); } }
public void Apply(CStyle style) { //TODO: Use TypeReflectionCacheContainer to optimize it in the futrue. var props = typeof(ICStyle).GetProperties().Where(prop => prop.CanWrite); foreach (var prop in props) { prop.SetValue(style, prop.GetValue(this)); } // Font style.Font = style.Book.CFont(Font); }