internal void ReadXml(XElement node) { string str = node.GetAttributeValueOrDefaultOfStringType("prst", "pct5"); ChartFormatPatternFillStyle style = ChartFormatPatternFillStyle.Percent05; _hatchStyles.TryGetValue(str, out style); this.FillPattern = style; foreach (XElement element in node.Elements()) { if (element.Name.LocalName == "bgClr") { foreach (XElement element2 in element.Elements()) { this.BackgroudDrawingColorSettings = new ExcelDrawingColorSettings(); this.BackgroundColor = ChartColorHelper.ReadColor(element2, this.BackgroudDrawingColorSettings); } } else if (element.Name.LocalName == "fgClr") { foreach (XElement element3 in element.Elements()) { this.ForegroudDrawingColorSettings = new ExcelDrawingColorSettings(); this.ForegroundColor = ChartColorHelper.ReadColor(element3, this.ForegroudDrawingColorSettings); } } } }
internal void ReadXml(XElement node) { foreach (XElement element in node.Elements()) { this.DrawingColorSettings = new ExcelDrawingColorSettings(); this.Color = ChartColorHelper.ReadColor(element, this.DrawingColorSettings); } }
internal void ReadXml(XElement node) { double num = node.GetAttributeValueOrDefaultOfDoubleType("pos", 100000.0); this.Position = num / 100000.0; foreach (XElement element in node.Elements()) { this.DrawingColorSettings = new ExcelDrawingColorSettings(); this.Color = ChartColorHelper.ReadColor(element, this.DrawingColorSettings); } }