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