示例#1
0
        public XSSFValueAxis(XSSFChart chart, CT_ValAx ctValAx)
            : base(chart)
        {

            this.ctValAx = ctValAx;
        }
示例#2
0
        private void CreateAxis(long id, AxisPosition pos)
        {
            ctValAx = chart.GetCTChart().plotArea.AddNewValAx();
            ctValAx.AddNewAxId().val = (uint)id;
            ctValAx.AddNewAxPos();
            ctValAx.AddNewScaling();
            ctValAx.AddNewCrossBetween();
            ctValAx.AddNewCrosses();
            ctValAx.AddNewCrossAx();
            ctValAx.AddNewTickLblPos().val = ST_TickLblPos.nextTo;

            SetPosition(pos);
            SetOrientation(AxisOrientation.MIN_MAX);
            SetCrossBetween(AxisCrossBetween.MIDPOINT_CATEGORY);
            SetCrosses(AxisCrosses.AUTO_ZERO);
        }
示例#3
0
 public static CT_ValAx Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ValAx ctObj = new CT_ValAx();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "axId")
             ctObj.axId = CT_UnsignedInt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "scaling")
             ctObj.scaling = CT_Scaling.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "delete")
             ctObj.delete = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "axPos")
             ctObj.axPos = CT_AxPos.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "majorGridlines")
             ctObj.majorGridlines = CT_ChartLines.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "minorGridlines")
             ctObj.minorGridlines = CT_ChartLines.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "title")
             ctObj.title = CT_Title.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "numFmt")
             ctObj.numFmt = CT_NumFmt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "majorTickMark")
             ctObj.majorTickMark = CT_TickMark.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "minorTickMark")
             ctObj.minorTickMark = CT_TickMark.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "tickLblPos")
             ctObj.tickLblPos = CT_TickLblPos.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "spPr")
             ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "txPr")
             ctObj.txPr = CT_TextBody.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "crossAx")
             ctObj.crossAx = CT_UnsignedInt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "crosses")
             ctObj.crosses = CT_Crosses.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "crossesAt")
             ctObj.crossesAt = CT_Double.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "crossBetween")
             ctObj.crossBetween = CT_CrossBetween.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "majorUnit")
             ctObj.majorUnit = CT_AxisUnit.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "minorUnit")
             ctObj.minorUnit = CT_AxisUnit.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dispUnits")
             ctObj.dispUnits = CT_DispUnits.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
示例#4
0
 public CT_ValAx AddNewValAx()
 {
     if (valAxField == null)
         valAxField = new List<CT_ValAx>();
     CT_ValAx val = new CT_ValAx();
     this.valAxField.Add(val);
     return val;
 }
示例#5
0
文件: Chart.cs 项目: xiepeixing/npoi
 public CT_ValAx AddNewValAx()
 {
     this.valAxField = new CT_ValAx();
     return this.valAxField;
 }
示例#6
0
        private void CreateAxis(long id, AxisPosition pos)
        {
            ctValAx = chart.GetCTChart().plotArea.AddNewValAx();
            ctValAx.AddNewAxId().val = (uint)id;
            ctValAx.AddNewAxPos();
            ctValAx.AddNewScaling();
            ctValAx.AddNewCrossBetween();
            ctValAx.AddNewCrosses();
            ctValAx.AddNewCrossAx();
            ctValAx.AddNewTickLblPos().val = ST_TickLblPos.nextTo;

            SetPosition(pos);
            SetOrientation(AxisOrientation.MinToMax);
            SetCrossBetween(AxisCrossBetween.MidpointCategory);
            SetCrosses(AxisCrosses.AutoZero);
        }
示例#7
0
        private void CreateAxis(long id, AxisPosition pos)
        {
            ctValAx = chart.GetCTChart().plotArea.AddNewValAx();
            ctValAx.AddNewAxId().val = (uint)id;
            ctValAx.AddNewAxPos();
            ctValAx.AddNewScaling();
            ctValAx.AddNewCrossBetween();
            ctValAx.AddNewCrosses();
            ctValAx.AddNewCrossAx();
            ctValAx.AddNewTickLblPos().val = ST_TickLblPos.nextTo;
            ctValAx.AddNewDelete();
            ctValAx.AddNewMajorTickMark();
            ctValAx.AddNewMinorTickMark();

            Position=(pos);
            Orientation=(AxisOrientation.MinToMax);
            SetCrossBetween(AxisCrossBetween.MidpointCategory);
            Crosses=(AxisCrosses.AutoZero);
            IsVisible=(true);
            MajorTickMark = (AxisTickMark.Cross);
            MinorTickMark=(AxisTickMark.None);
        }