Esempio n. 1
0
        private XLFontValue(XLFontKey key)
        {
            Key = key;
            var fontColorKey = Key.FontColor;

            FontColor = XLColor.FromKey(ref fontColorKey);
        }
Esempio n. 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);
            });
        }
Esempio n. 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;
 }
Esempio n. 4
0
 public XLFont(XLStyle style, XLFontKey key) : this(style, XLFontValue.FromKey(key))
 {
 }
Esempio n. 5
0
 public static XLFontValue FromKey(XLFontKey key)
 {
     return(Repository.GetOrCreate(key));
 }
Esempio n. 6
0
        private XLFontValue(XLFontKey key)
        {
            Key = key;

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