Browse Source

Fix for Script property not parsed submited by lucwuyts

master
PrzemyslawKlys 9 years ago
parent
commit
9334f7f695
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      DocX/Formatting.cs

+ 5
- 2
DocX/Formatting.cs View File

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

Loading…
Cancel
Save