public static CT_PivotTableStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_PivotTableStyle ctObj = new CT_PivotTableStyle(); ctObj.name = XmlHelper.ReadString(node.Attributes["name"]); if (node.Attributes["showRowHeaders"] != null) ctObj.showRowHeaders = XmlHelper.ReadBool(node.Attributes["showRowHeaders"]); if (node.Attributes["showColHeaders"] != null) ctObj.showColHeaders = XmlHelper.ReadBool(node.Attributes["showColHeaders"]); if (node.Attributes["showRowStripes"] != null) ctObj.showRowStripes = XmlHelper.ReadBool(node.Attributes["showRowStripes"]); if (node.Attributes["showColStripes"] != null) ctObj.showColStripes = XmlHelper.ReadBool(node.Attributes["showColStripes"]); if (node.Attributes["showLastColumn"] != null) ctObj.showLastColumn = XmlHelper.ReadBool(node.Attributes["showLastColumn"]); return ctObj; }
public CT_PivotTableStyle AddNewPivotTableStyleInfo() { this.pivotTableStyleInfoField = new CT_PivotTableStyle(); return this.pivotTableStyleInfoField; }