public CT_Cell3D() { this.extLstField = new CT_OfficeArtExtensionList(); this.lightRigField = new CT_LightRig(); this.bevelField = new CT_Bevel(); this.prstMaterialField = ST_PresetMaterialType.plastic; }
public static CT_Bevel Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_Bevel ctObj = new CT_Bevel(); ctObj.w = XmlHelper.ReadLong(node.Attribute("w")); ctObj.h = XmlHelper.ReadLong(node.Attribute("h")); if (node.Attribute("prst") != null) { ctObj.prst = (ST_BevelPresetType)Enum.Parse(typeof(ST_BevelPresetType), node.Attribute("prst").Value); } return(ctObj); }
public static CT_Shape3D Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_Shape3D ctObj = new CT_Shape3D(); ctObj.z = XmlHelper.ReadLong(node.Attribute("z")); ctObj.extrusionH = XmlHelper.ReadLong(node.Attribute("extrusionH")); ctObj.contourW = XmlHelper.ReadLong(node.Attribute("contourW")); if (node.Attribute("prstMaterial") != null) { ctObj.prstMaterial = (ST_PresetMaterialType)Enum.Parse(typeof(ST_PresetMaterialType), node.Attribute("prstMaterial").Value); } foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "bevelT") { ctObj.bevelT = CT_Bevel.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "bevelB") { ctObj.bevelB = CT_Bevel.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "extrusionClr") { ctObj.extrusionClr = CT_Color.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "contourClr") { ctObj.contourClr = CT_Color.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "extLst") { ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager); } } return(ctObj); }