Example #1
0
 void MapObject(XValues xValues, DocumentObjectModel.Shapes.Charts.XValues domXValues)
 {
     foreach (DocumentObjectModel.Shapes.Charts.XSeries domXSeries in domXValues)
     {
         XSeries xSeries = xValues.AddXSeries();
         DocumentObjectModel.Shapes.Charts.XSeriesElements domXSeriesElements = domXSeries.GetValue("XSeriesElements") as DocumentObjectModel.Shapes.Charts.XSeriesElements;
         foreach (DocumentObjectModel.Shapes.Charts.XValue domXValue in domXSeriesElements)
         {
             if (domXValue == null)
                 xSeries.AddBlank();
             else
                 xSeries.Add(domXValue.GetValue("Value").ToString());
         }
     }
 }
Example #2
0
 internal static void Map(XValues xValues, DocumentObjectModel.Shapes.Charts.XValues domXValues)
 {
     XValuesMapper mapper = new XValuesMapper();
     mapper.MapObject(xValues, domXValues);
 }