浏览代码

issue #63 - fixed FontSize() method in Paragraph.cs to accept half sizes

master
Luke Walsh 9 年前
父节点
当前提交
89d2971733
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      DocX/Paragraph.cs

+ 3
- 1
DocX/Paragraph.cs 查看文件

@@ -2966,7 +2966,9 @@ namespace Novacode
/// </example>
public Paragraph FontSize(double fontSize)
{
if (fontSize - (int)fontSize == 0)
double temp = fontSize * 2;
if (temp - (int)temp == 0)
{
if (!(fontSize > 0 && fontSize < 1639))
throw new ArgumentException("Size", "Value must be in the range 0 - 1638");

正在加载...
取消
保存