private XLFontValue(XLFontKey key) { Key = key; var fontColorKey = Key.FontColor; FontColor = XLColor.FromKey(ref fontColorKey); }
private void Modify(Func <XLFontKey, XLFontKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var font = styleKey.Font; styleKey.Font = modification(font); return(styleKey); }); }
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; }
public XLFont(XLStyle style, XLFontKey key) : this(style, XLFontValue.FromKey(key)) { }
public static XLFontValue FromKey(XLFontKey key) { return(Repository.GetOrCreate(key)); }
private XLFontValue(XLFontKey key) { Key = key; FontColor = XLColor.FromKey(Key.FontColor); }