public static XmlElement ToXmlElement(this Pen pen) { XmlElement res = XmlElementGenerator.FromString("Wheat", pen); res.AppendChildren(XmlElementGenerator.FromNamePropsOf(pen, "Width", "Color")); return(res); }
XmlElement IXmlSavable.ToXmlElement() { XmlElement result = XmlElementGenerator.FromString(((IXmlSavable)this).Name, this); result.AppendChildren(XmlElementGenerator.FromSavablePropsOf(this)); return(result); }
public static XmlElement ToXmlElement(this BrushBase brush) { XmlElement res = XmlElementGenerator.FromString("Wheat", brush); res.AppendChildren(XmlElementGenerator.FromNameFieldsOf(brush, "pen", "font")); return(res); }
XmlElement IXmlSavable.ToXmlElement() { XmlElement res = XmlElementGenerator.FromString(((IXmlSavable)this).Name, this); res.AppendChildren(XmlElementGenerator.FromNamePropsOf(this, "Brush")); return(res); }
public static XmlElement ToXmlElement(this Font font) { XmlElement res = XmlElementGenerator.FromString("Wheat", font); res.AppendChild(XmlElementGenerator.FromString("fontFamily", font.FontFamily.Name)); res.AppendChildren(XmlElementGenerator.FromNamePropsOf(font, "Size", "Style")); return(res); }
public static XmlElement ToXmlElement(this Color color) { XmlElement res = XmlElementGenerator.FromString("Wheat", color); res.AppendChildren(XmlElementGenerator.FromNamePropsOf(color, "A", "R", "G", "B")); if (color.IsNamedColor) { res.AppendChildren(XmlElementGenerator.FromNamePropsOf(color, "Name")); } return(res); }
XmlElement IXmlSavable.ToXmlElement() { return(XmlElementGenerator.FromCollection(((IXmlSavable)this).Name, this, bingdingName: null)); }