示例#1
0
 public CT_TableBackgroundStyle()
 {
     this.effectRefField = new CT_StyleMatrixReference();
     this.effectField    = new CT_EffectProperties();
     this.fillRefField   = new CT_StyleMatrixReference();
     this.fillField      = new CT_FillProperties();
 }
示例#2
0
 public CT_TableStyleCellStyle()
 {
     this.cell3DField  = new CT_Cell3D();
     this.fillRefField = new CT_StyleMatrixReference();
     this.fillField    = new CT_FillProperties();
     this.tcBdrField   = new CT_TableCellBorderStyle();
 }
示例#3
0
        public static CT_ShapeStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ShapeStyle ctObj = new CT_ShapeStyle();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "lnRef")
                {
                    ctObj.lnRef = CT_StyleMatrixReference.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "fillRef")
                {
                    ctObj.fillRef = CT_StyleMatrixReference.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "effectRef")
                {
                    ctObj.effectRef = CT_StyleMatrixReference.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "fontRef")
                {
                    ctObj.fontRef = CT_FontReference.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
示例#4
0
        public static CT_StyleMatrixReference Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_StyleMatrixReference ctObj = new CT_StyleMatrixReference();

            ctObj.idx = XmlHelper.ReadUInt(node.Attributes["idx"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "scrgbClr")
                {
                    ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "srgbClr")
                {
                    ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "hslClr")
                {
                    ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sysClr")
                {
                    ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "schemeClr")
                {
                    ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "prstClr")
                {
                    ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
示例#5
0
 public static CT_StyleMatrixReference Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_StyleMatrixReference ctObj = new CT_StyleMatrixReference();
     ctObj.idx = XmlHelper.ReadUInt(node.Attributes["idx"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "scrgbClr")
             ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "srgbClr")
             ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "hslClr")
             ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "sysClr")
             ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "schemeClr")
             ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "prstClr")
             ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
示例#6
0
 public CT_StyleMatrixReference AddNewEffectRef()
 {
     this.effectRefField = new CT_StyleMatrixReference();
     return(this.effectRefField);
 }
示例#7
0
 public CT_StyleMatrixReference AddNewLnRef()
 {
     this.lnRefField = new CT_StyleMatrixReference();
     return(this.lnRefField);
 }
示例#8
0
 public CT_StyleMatrixReference AddNewEffectRef()
 {
     this.effectRefField = new CT_StyleMatrixReference();
     return this.effectRefField;
 }
示例#9
0
 public CT_StyleMatrixReference AddNewLnRef()
 {
     this.lnRefField = new CT_StyleMatrixReference();
     return this.lnRefField;
 }
示例#10
0
 public CT_TableStyleCellStyle()
 {
     this.cell3DField = new CT_Cell3D();
     this.fillRefField = new CT_StyleMatrixReference();
     this.fillField = new CT_FillProperties();
     this.tcBdrField = new CT_TableCellBorderStyle();
 }
示例#11
0
 public CT_TableBackgroundStyle()
 {
     this.effectRefField = new CT_StyleMatrixReference();
     this.effectField = new CT_EffectProperties();
     this.fillRefField = new CT_StyleMatrixReference();
     this.fillField = new CT_FillProperties();
 }