示例#1
0
        private CellDecorator GetStrikethrough(IFont font, Color color)
        {
            if (DecoratorStrikethrough != CellDecorator.Empty)
            {
                return(DecoratorStrikethrough);
            }

            if (font.HasGlyphDefinition("strikethrough"))
            {
                return(font.GetDecorator("strikethrough", color));
            }

            return(new CellDecorator(color, 196, Mirror.None));
        }
示例#2
0
        private CellDecorator GetUnderline(IFont font, Color color)
        {
            if (DecoratorUnderline != CellDecorator.Empty)
            {
                return(DecoratorUnderline);
            }

            if (font.HasGlyphDefinition("underline"))
            {
                return(font.GetDecorator("underline", color));
            }

            return(new CellDecorator(color, 95, Mirror.None));
        }