ソースを参照

Fix for Script property not parsed submited by lucwuyts

master
PrzemyslawKlys 9年前
コミット
9334f7f695
1個のファイルの変更5行の追加2行の削除
  1. 5
    2
      DocX/Formatting.cs

+ 5
- 2
DocX/Formatting.cs ファイルの表示

@@ -150,8 +150,11 @@ namespace Novacode
case "vanish": formatting.hidden = true; break;
case "b": formatting.Bold = true; break;
case "i": formatting.Italic = true; break;
case "u": formatting.UnderlineStyle = HelperFunctions.GetUnderlineStyle(option.GetAttribute(XName.Get("val", DocX.w.NamespaceName)));
break;
case "u": formatting.UnderlineStyle = HelperFunctions.GetUnderlineStyle(option.GetAttribute(XName.Get("val", DocX.w.NamespaceName))); break;
case "vertAlign":
var script = option.GetAttribute(XName.Get("val", DocX.w.NamespaceName), null);
formatting.Script = (Script)Enum.Parse(typeof(Script), script);
break;
default: break;
}
}

読み込み中…
キャンセル
保存