Exemplo n.º 1
0
 internal void WriteXml(XmlWriter writer, MemoryFolder mFolder, XFile chartFile)
 {
     using (writer.WriteElement("pattFill", null, "a"))
     {
         string str = "pct5";
         foreach (KeyValuePair <string, ChartFormatPatternFillStyle> pair in _hatchStyles)
         {
             if (((ChartFormatPatternFillStyle)pair.Value) == this.FillPattern)
             {
                 str = pair.Key;
                 break;
             }
         }
         writer.WriteAttributeString("prst", null, str);
         if (this.ForegroundColor != null)
         {
             using (writer.WriteElement("fgClr", null, "a"))
             {
                 ChartColorHelper.WriteColor(writer, this.ForegroundColor, this.ForegroudDrawingColorSettings);
             }
         }
         if (this.BackgroundColor != null)
         {
             using (writer.WriteElement("bgClr", null, "a"))
             {
                 ChartColorHelper.WriteColor(writer, this.BackgroundColor, this.BackgroudDrawingColorSettings);
             }
         }
     }
 }
Exemplo n.º 2
0
 internal void WriteXml(XmlWriter writer, MemoryFolder mFolder, XFile chartFile)
 {
     using (writer.WriteElement("solidFill", null, "a"))
     {
         ChartColorHelper.WriteColor(writer, this.Color, this.DrawingColorSettings);
     }
 }
Exemplo n.º 3
0
 internal void WriteXml(XmlWriter writer, MemoryFolder mFolder, XFile chartFile)
 {
     using (writer.WriteElement("gs", null, "a"))
     {
         double num = Math.Round(this.Position, 5) * 100000.0;
         writer.WriteAttributeString("pos", ((double)num).ToString((IFormatProvider)CultureInfo.InvariantCulture));
         if (this.Color != null)
         {
             ChartColorHelper.WriteColor(writer, this.Color, this.DrawingColorSettings);
         }
     }
 }