コード例 #1
0
ファイル: TableStyle.cs プロジェクト: thachgiasoft/shuijin
 public CT_Cell3D()
 {
     this.extLstField       = new CT_OfficeArtExtensionList();
     this.lightRigField     = new CT_LightRig();
     this.bevelField        = new CT_Bevel();
     this.prstMaterialField = ST_PresetMaterialType.plastic;
 }
コード例 #2
0
ファイル: TableStyle.cs プロジェクト: JnS-Software-LLC/npoi
 public CT_Cell3D()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.lightRigField = new CT_LightRig();
     this.bevelField = new CT_Bevel();
     this.prstMaterialField = ST_PresetMaterialType.plastic;
 }
コード例 #3
0
 public static CT_Bevel Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Bevel ctObj = new CT_Bevel();
     ctObj.w = XmlHelper.ReadLong(node.Attributes["w"]);
     ctObj.h = XmlHelper.ReadLong(node.Attributes["h"]);
     if (node.Attributes["prst"] != null)
         ctObj.prst = (ST_BevelPresetType)Enum.Parse(typeof(ST_BevelPresetType), node.Attributes["prst"].Value);
     return ctObj;
 }
コード例 #4
0
ファイル: Shape3DStyles.cs プロジェクト: yesonsik/npoi
 public CT_Shape3D()
 {
     this.extLstField       = new CT_OfficeArtExtensionList();
     this.contourClrField   = new CT_Color();
     this.extrusionClrField = new CT_Color();
     this.bevelBField       = new CT_Bevel();
     this.bevelTField       = new CT_Bevel();
     this.zField            = ((long)(0));
     this.extrusionHField   = ((long)(0));
     this.contourWField     = ((long)(0));
     this.prstMaterialField = ST_PresetMaterialType.warmMatte;
 }
コード例 #5
0
ファイル: Shape3DStyles.cs プロジェクト: hiodava/Romero
        public static CT_Bevel Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Bevel ctObj = new CT_Bevel();

            ctObj.w = XmlHelper.ReadLong(node.Attributes["w"]);
            ctObj.h = XmlHelper.ReadLong(node.Attributes["h"]);
            if (node.Attributes["prst"] != null)
            {
                ctObj.prst = (ST_BevelPresetType)Enum.Parse(typeof(ST_BevelPresetType), node.Attributes["prst"].Value);
            }
            return(ctObj);
        }
コード例 #6
0
ファイル: Shape3DStyles.cs プロジェクト: hiodava/Romero
        public static CT_Shape3D Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Shape3D ctObj = new CT_Shape3D();

            ctObj.z          = XmlHelper.ReadLong(node.Attributes["z"]);
            ctObj.extrusionH = XmlHelper.ReadLong(node.Attributes["extrusionH"]);
            ctObj.contourW   = XmlHelper.ReadLong(node.Attributes["contourW"]);
            if (node.Attributes["prstMaterial"] != null)
            {
                ctObj.prstMaterial = (ST_PresetMaterialType)Enum.Parse(typeof(ST_PresetMaterialType), node.Attributes["prstMaterial"].Value);
            }
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "bevelT")
                {
                    ctObj.bevelT = CT_Bevel.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "bevelB")
                {
                    ctObj.bevelB = CT_Bevel.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extrusionClr")
                {
                    ctObj.extrusionClr = CT_Color.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "contourClr")
                {
                    ctObj.contourClr = CT_Color.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
コード例 #7
0
ファイル: Shape3DStyles.cs プロジェクト: xoposhiy/npoi
 public CT_Shape3D() {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.contourClrField = new CT_Color();
     this.extrusionClrField = new CT_Color();
     this.bevelBField = new CT_Bevel();
     this.bevelTField = new CT_Bevel();
     this.zField = ((long)(0));
     this.extrusionHField = ((long)(0));
     this.contourWField = ((long)(0));
     this.prstMaterialField = ST_PresetMaterialType.warmMatte;
 }