예제 #1
0
파일: Sheet.cs 프로젝트: vardars/npoi
 public static CT_PivotArea Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PivotArea ctObj = new CT_PivotArea();
     ctObj.field = XmlHelper.ReadInt(node.Attributes["field"]);
     if (node.Attributes["type"] != null)
         ctObj.type = (ST_PivotAreaType)Enum.Parse(typeof(ST_PivotAreaType), node.Attributes["type"].Value);
     ctObj.dataOnly = XmlHelper.ReadBool(node.Attributes["dataOnly"]);
     ctObj.labelOnly = XmlHelper.ReadBool(node.Attributes["labelOnly"]);
     ctObj.grandRow = XmlHelper.ReadBool(node.Attributes["grandRow"]);
     ctObj.grandCol = XmlHelper.ReadBool(node.Attributes["grandCol"]);
     ctObj.cacheIndex = XmlHelper.ReadBool(node.Attributes["cacheIndex"]);
     ctObj.outline = XmlHelper.ReadBool(node.Attributes["outline"]);
     ctObj.offset = XmlHelper.ReadString(node.Attributes["offset"]);
     ctObj.collapsedLevelsAreSubtotals = XmlHelper.ReadBool(node.Attributes["collapsedLevelsAreSubtotals"]);
     if (node.Attributes["axis"] != null)
         ctObj.axis = (ST_Axis)Enum.Parse(typeof(ST_Axis), node.Attributes["axis"].Value);
     ctObj.fieldPosition = XmlHelper.ReadUInt(node.Attributes["fieldPosition"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "references")
             ctObj.references = CT_PivotAreaReferences.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
예제 #2
0
파일: Sheet.cs 프로젝트: vardars/npoi
 public CT_PivotSelection()
 {
     this.pivotAreaField = new CT_PivotArea();
     this.paneField = ST_Pane.topLeft;
     this.showHeaderField = false;
     this.labelField = false;
     this.dataField = false;
     this.extendableField = false;
     this.countField = ((uint)(0));
     this.dimensionField = ((uint)(0));
     this.startField = ((uint)(0));
     this.minField = ((uint)(0));
     this.maxField = ((uint)(0));
     this.activeRowField = ((uint)(0));
     this.activeColField = ((uint)(0));
     this.previousRowField = ((uint)(0));
     this.previousColField = ((uint)(0));
     this.clickField = ((uint)(0));
 }
예제 #3
0
 public CT_CalculatedItem()
 {
     this.extLstField = new CT_ExtensionList();
     this.pivotAreaField = new CT_PivotArea();
 }
예제 #4
0
 public CT_ChartFormat()
 {
     this.pivotAreaField = new CT_PivotArea();
     this.seriesField = false;
 }
예제 #5
0
 public CT_Format()
 {
     this.extLstField = new CT_ExtensionList();
     this.pivotAreaField = new CT_PivotArea();
     this.actionField = ST_FormatAction.formatting;
 }
예제 #6
0
 public CT_AutoSortScope()
 {
     this.pivotAreaField = new CT_PivotArea();
 }