예제 #1
0
 public static CT_FontScheme Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_FontScheme ctObj = new CT_FontScheme();
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "majorFont")
             ctObj.majorFont = CT_FontCollection.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "minorFont")
             ctObj.minorFont = CT_FontCollection.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
예제 #2
0
 public CT_BaseStylesOverride()
 {
     this.fmtSchemeField  = new CT_StyleMatrix();
     this.fontSchemeField = new CT_FontScheme();
     this.clrSchemeField  = new CT_ColorScheme();
 }
예제 #3
0
파일: StyleSheet.cs 프로젝트: xoposhiy/npoi
 public CT_BaseStylesOverride()
 {
     this.fmtSchemeField = new CT_StyleMatrix();
     this.fontSchemeField = new CT_FontScheme();
     this.clrSchemeField = new CT_ColorScheme();
 }