/// <summary> /// Add style to be able to use it in a topic /// </summary> public string AddStyleTopic(XMindTopicShape iShapeClass, System.Drawing.Color iFill) { string styleId = NewId(); var colorConvertor = new ColorConverter(); var xElement = GetStyles(); xElement.Add( new XElement(_defaultStylesNS + "style", new XAttribute("id", styleId), new XAttribute("type", "topic"), new XElement(_defaultStylesNS + "topic-properties", new XAttribute("fill", iFill.HexConverter()), new XAttribute("shape-class", iShapeClass.GetDescription())) )); return(styleId); }