Skip to content

Commit f11d976

Browse files
committed
more
1 parent f1304b6 commit f11d976

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

MigraDocCore.DocumentObjectModel/MigraDoc/MigraDoc.DocumentObjectModel/TextMeasurement.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
using System;
3434
using System.Diagnostics;
35-
using System.ComponentModel;
36-
using MigraDocCore.DocumentObjectModel.Internals;
3735
using PdfSharpCore.Drawing;
3836

3937
namespace MigraDocCore.DocumentObjectModel
@@ -63,7 +61,7 @@ public XSize MeasureString(string text, UnitType unitType)
6361
if (!Enum.IsDefined(typeof(UnitType), unitType))
6462
throw new ArgumentException();
6563

66-
XSize size = graphics.MeasureString(text, this.XFont);
64+
var size = graphics.MeasureString(text, this.XFont);
6765
switch (unitType)
6866
{
6967
case UnitType.Point:
@@ -99,7 +97,7 @@ public XSize MeasureString(string text, UnitType unitType)
9997
/// <summary>
10098
/// Returns the size of the bounding box of the specified text in point.
10199
/// </summary>
102-
public PdfSharpCore.Drawing.XSize MeasureString(string text)
100+
public XSize MeasureString(string text)
103101
{
104102
return MeasureString(text, UnitType.Point);
105103
}
@@ -125,7 +123,7 @@ public Font Font
125123
/// <summary>
126124
/// Gets the xfont used for measurement.
127125
/// </summary>
128-
private Font XFont
126+
private XFont XFont
129127
{
130128
get {
131129
if (this.xFont == null)

0 commit comments

Comments
 (0)