소스 검색

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

Loading…
취소
저장