private void Modify(Func <XLAlignmentKey, XLAlignmentKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var align = styleKey.Alignment; styleKey.Alignment = modification(align); return(styleKey); }); }
private void Modify(Func <XLBorderKey, XLBorderKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var border = styleKey.Border; styleKey.Border = modification(border); return(styleKey); }); }
private void Modify(Func <XLNumberFormatKey, XLNumberFormatKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var numberFormat = styleKey.NumberFormat; styleKey.NumberFormat = modification(numberFormat); return(styleKey); }); }
private void Modify(Func <XLProtectionKey, XLProtectionKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var protection = styleKey.Protection; styleKey.Protection = modification(protection); return(styleKey); }); }
private void Modify(Func <XLFontKey, XLFontKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var font = styleKey.Font; styleKey.Font = modification(font); return(styleKey); }); }
private void Modify(Func <XLFillKey, XLFillKey> modification) { Key = modification(Key); _style.Modify(styleKey => { var fill = styleKey.Fill; styleKey.Fill = modification(fill); return(styleKey); }); }