Code Coverage Statistics for Source File
c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\HighlightingStrategy\HighlightBackground.cs
|
Sequence Point Coverage
N/A
0 of 0
|
Branch Coverage
N/A
0 of 0
|
Lines
51
|
Highlight:
Uncovered Code
Covered Code
| L | V | Source |
|---|---|---|
1 |
// <file> |
|
2 |
// <copyright see="prj:///doc/copyright.txt"/> |
|
3 |
// <license see="prj:///doc/license.txt"/> |
|
4 |
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/> |
|
5 |
// <version>$Revision: 1965 $</version> |
|
6 |
// </file> |
|
7 |
||
8 |
using System; |
|
9 |
using System.Drawing; |
|
10 |
using System.Xml; |
|
11 |
||
12 |
namespace ICSharpCode.TextEditor.Document |
|
13 |
{ |
|
14 |
/// <summary> |
|
15 |
/// Extens the highlighting color with a background image. |
|
16 |
/// </summary> |
|
17 |
public class HighlightBackground : HighlightColor |
|
18 |
{ |
|
19 |
Image backgroundImage; |
|
20 |
||
21 |
/// <value> |
|
22 |
/// The image used as background |
|
23 |
/// </value> |
|
24 |
public Image BackgroundImage { |
|
25 |
get { |
|
26 |
return backgroundImage; |
|
27 |
} |
|
28 |
} |
|
29 |
||
30 |
/// <summary> |
|
31 |
/// Creates a new instance of <see cref="HighlightBackground"/> |
|
32 |
/// </summary> |
|
33 |
public HighlightBackground(XmlElement el) : base(el) |
|
34 |
{ |
|
35 |
if (el.Attributes["image"] != null) { |
|
36 |
backgroundImage = new Bitmap(el.Attributes["image"].InnerText); |
|
37 |
} |
|
38 |
} |
|
39 |
||
40 |
/// <summary> |
|
41 |
/// Creates a new instance of <see cref="HighlightBackground"/> |
|
42 |
/// </summary> |
|
43 |
public HighlightBackground(Color color, Color backgroundcolor, bool bold, bool italic) : base(color, backgroundcolor, bold, italic) |
|
44 |
{ |
|
45 |
} |
|
46 |
||
47 |
public HighlightBackground(string systemColor, string systemBackgroundColor, bool bold, bool italic) : base(systemColor, systemBackgroundColor, bold, italic) |
|
48 |
{ |
|
49 |
} |
|
50 |
} |
|
51 |
} |