File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
MigraDocCore.DocumentObjectModel/MigraDoc/MigraDoc.DocumentObjectModel Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 32
32
33
33
using System ;
34
34
using System . Diagnostics ;
35
- using System . ComponentModel ;
36
- using MigraDocCore . DocumentObjectModel . Internals ;
37
35
using PdfSharpCore . Drawing ;
38
36
39
37
namespace MigraDocCore . DocumentObjectModel
@@ -63,7 +61,7 @@ public XSize MeasureString(string text, UnitType unitType)
63
61
if ( ! Enum . IsDefined ( typeof ( UnitType ) , unitType ) )
64
62
throw new ArgumentException ( ) ;
65
63
66
- XSize size = graphics . MeasureString ( text , this . XFont ) ;
64
+ var size = graphics . MeasureString ( text , this . XFont ) ;
67
65
switch ( unitType )
68
66
{
69
67
case UnitType . Point :
@@ -99,7 +97,7 @@ public XSize MeasureString(string text, UnitType unitType)
99
97
/// <summary>
100
98
/// Returns the size of the bounding box of the specified text in point.
101
99
/// </summary>
102
- public PdfSharpCore . Drawing . XSize MeasureString ( string text )
100
+ public XSize MeasureString ( string text )
103
101
{
104
102
return MeasureString ( text , UnitType . Point ) ;
105
103
}
@@ -125,7 +123,7 @@ public Font Font
125
123
/// <summary>
126
124
/// Gets the xfont used for measurement.
127
125
/// </summary>
128
- private Font XFont
126
+ private XFont XFont
129
127
{
130
128
get {
131
129
if ( this . xFont == null )
You can’t perform that action at this time.
0 commit comments