Code Coverage Statistics for Source File

c:\Tools\SD3\src\Libraries\ICSharpCode.TextEditor\Project\Src\Util\TipSpacer.cs

Sequence Point Coverage
N/A
0 of 0
Branch Coverage
N/A
0 of 0
Lines
36
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="none" email=""/>
5
//     <version>$Revision: 915 $</version>
6
// </file>
7
8
using System;
9
using System.Drawing;
10
11
namespace ICSharpCode.TextEditor.Util
12
{
13
	class TipSpacer: TipSection
14
	{
15
		SizeF spacerSize;
16
		
17
		public TipSpacer(Graphics graphics, SizeF size): base(graphics)
18
		{
19
			spacerSize = size;
20
		}
21
		
22
		public override void Draw(PointF location)
23
		{
24
			
25
		}
26
		
27
		protected override void OnMaximumSizeChanged()
28
		{
29
			base.OnMaximumSizeChanged();
30
			
31
			SetRequiredSize(new SizeF
32
			                (Math.Min(MaximumSize.Width, spacerSize.Width),
33
			                Math.Min(MaximumSize.Height, spacerSize.Height)));
34
		}
35
	}
36
}