Esempio n. 1
0
 public void SetCStyle(CStyle style)
 {
     foreach (var range in Ranges)
     {
         range.SetCStyle(style);
     }
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void SetCStyle(CStyle style) => SetCellStyle(style.CellStyle);