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