Exemplo n.º 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);
            });
        }
Exemplo n.º 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);
            });
        }
Exemplo n.º 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);
            });
        }
Exemplo n.º 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);
            });
        }
Exemplo n.º 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);
            });
        }
Exemplo n.º 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);
            });
        }