示例#1
0
        private XLFontValue(XLFontKey key)
        {
            Key = key;
            var fontColorKey = Key.FontColor;

            FontColor = XLColor.FromKey(ref fontColorKey);
        }
示例#2
0
        private void Modify(Func <XLFontKey, XLFontKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var font      = styleKey.Font;
                styleKey.Font = modification(font);
                return(styleKey);
            });
        }
示例#3
0
 public void Deconstruct(
     out XLAlignmentKey alignment,
     out XLBorderKey border,
     out XLFillKey fill,
     out XLFontKey font,
     out Boolean includeQuotePrefix,
     out XLNumberFormatKey numberFormat,
     out XLProtectionKey protection)
 {
     alignment          = Alignment;
     border             = Border;
     fill               = Fill;
     font               = Font;
     includeQuotePrefix = IncludeQuotePrefix;
     numberFormat       = NumberFormat;
     protection         = Protection;
 }
示例#4
0
 public XLFont(XLStyle style, XLFontKey key) : this(style, XLFontValue.FromKey(key))
 {
 }
示例#5
0
 public static XLFontValue FromKey(XLFontKey key)
 {
     return(Repository.GetOrCreate(key));
 }
示例#6
0
        private XLFontValue(XLFontKey key)
        {
            Key = key;

            FontColor = XLColor.FromKey(Key.FontColor);
        }