tidy up some doc comments

This commit is contained in:
Eliot Jones
2019-05-18 12:28:42 +01:00
parent f884674807
commit 7a3b89ece1
3 changed files with 6 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ namespace UglyToad.PdfPig.Content
/// <summary>
/// Create a new <see cref="TextLine"/>.
/// </summary>
/// <param name="words">The words contained in the word.</param>
/// <param name="words">The words contained in the line.</param>
public TextLine(IReadOnlyList<Word> words)
{
if (words == null)

View File

@@ -17,7 +17,7 @@
{
get
{
decimal l = (Point1.X - Point2.X) * (Point1.X - Point2.X) +
var l = (Point1.X - Point2.X) * (Point1.X - Point2.X) +
(Point1.Y - Point2.Y) * (Point1.Y - Point2.Y);
return (decimal)System.Math.Sqrt((double)l);
}
@@ -36,10 +36,10 @@
/// <summary>
/// Create a new <see cref="PdfLine"/>.
/// </summary>
/// <param name="x1"></param>
/// <param name="y1"></param>
/// <param name="x2"></param>
/// <param name="y2"></param>
/// <param name="x1">The x coordinate of the first point on the line.</param>
/// <param name="y1">The y coordinate of the first point on the line.</param>
/// <param name="x2">The x coordinate of the second point on the line.</param>
/// <param name="y2">The y coordinate of the second point on the line.</param>
public PdfLine(decimal x1, decimal y1, decimal x2, decimal y2) : this(new PdfPoint(x1, y1), new PdfPoint(x2, y2)) { }
/// <summary>

View File

@@ -71,10 +71,6 @@
/// <summary>
/// Create a new <see cref="PdfRectangle"/>.
/// </summary>
/// <param name="x1"></param>
/// <param name="y1"></param>
/// <param name="x2"></param>
/// <param name="y2"></param>
public PdfRectangle(decimal x1, decimal y1, decimal x2, decimal y2)
{
decimal bottom;
@@ -132,7 +128,6 @@
/// <summary>
/// To string override.
/// </summary>
/// <returns></returns>
public override string ToString()
{
return $"[{TopLeft}, {Width}, {Height}]";