示例#1
0
        public uint GetFont(IXlsxFont fontLayer)
        {
            XlsxFont layer = fontLayer as XlsxFont;

            if (layer == null)
            {
                throw new Exception("Unexpected Font Type");
            }

            return(GetFont(layer.Size, layer.FontType.ToString(), XlsxFont.FontFamilyId, layer.Bold, layer.Italic, layer.UnderlineType, layer.ColorArgb));
        }
示例#2
0
 public XlsxCell(object value, IXlsxFont font = null)
 {
     Value = value;
     Font  = font;
 }