// // // // // $Revision$ // using System; using System.Drawing; using System.Xml; namespace ICSharpCode.TextEditor.Document { /// /// Extens the highlighting color with a background image. /// public class HighlightBackground : HighlightColor { Image backgroundImage; /// /// The image used as background /// public Image BackgroundImage { get { return backgroundImage; } } /// /// Creates a new instance of /// public HighlightBackground(XmlElement el) : base(el) { if (el.Attributes["image"] != null) { backgroundImage = new Bitmap(el.Attributes["image"].InnerText); } } /// /// Creates a new instance of /// public HighlightBackground(Color color, Color backgroundcolor, bool bold, bool italic) : base(color, backgroundcolor, bold, italic) { } public HighlightBackground(string systemColor, string systemBackgroundColor, bool bold, bool italic) : base(systemColor, systemBackgroundColor, bold, italic) { } } }