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)); }
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)); }