mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-22 12:09:50 +08:00
tidy up some doc comments
This commit is contained in:
@@ -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)
|
||||
|
@@ -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>
|
||||
|
@@ -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}]";
|
||||
|
Reference in New Issue
Block a user