//internal Fill Copy() //{ // Fill newFill = new Fill(NameSpaceManager, TopNode.Clone()); // return newFill; //} internal override XmlNode CreateXmlNode(XmlNode topNode) { TopNode = topNode; SetXmlNodeString(fillPatternTypePath, SetPatternString(_fillPatternType)); if (PatternType != ExcelFillStyle.None) { XmlNode pattern = topNode.SelectSingleNode(fillPatternTypePath, NameSpaceManager); if (BackgroundColor.Exists) { CreateNode(_backgroundColorPath); BackgroundColor.CreateXmlNode(topNode.SelectSingleNode(_backgroundColorPath, NameSpaceManager)); if (PatternColor.Exists) { CreateNode(_patternColorPath); PatternColor.CreateXmlNode(topNode.SelectSingleNode(_patternColorPath, NameSpaceManager)); } } } return(topNode); }