Пример #1
0
        private void Modify(Func <XLAlignmentKey, XLAlignmentKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var align          = styleKey.Alignment;
                styleKey.Alignment = modification(align);
                return(styleKey);
            });
        }
Пример #2
0
        private void Modify(Func <XLBorderKey, XLBorderKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var border      = styleKey.Border;
                styleKey.Border = modification(border);
                return(styleKey);
            });
        }
Пример #3
0
        private void Modify(Func <XLNumberFormatKey, XLNumberFormatKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var numberFormat      = styleKey.NumberFormat;
                styleKey.NumberFormat = modification(numberFormat);
                return(styleKey);
            });
        }
Пример #4
0
        private void Modify(Func <XLProtectionKey, XLProtectionKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var protection      = styleKey.Protection;
                styleKey.Protection = modification(protection);
                return(styleKey);
            });
        }
Пример #5
0
        private void Modify(Func <XLFontKey, XLFontKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var font      = styleKey.Font;
                styleKey.Font = modification(font);
                return(styleKey);
            });
        }
Пример #6
0
        private void Modify(Func <XLFillKey, XLFillKey> modification)
        {
            Key = modification(Key);

            _style.Modify(styleKey =>
            {
                var fill      = styleKey.Fill;
                styleKey.Fill = modification(fill);
                return(styleKey);
            });
        }