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>
|
/// <summary>
|
||||||
/// Create a new <see cref="TextLine"/>.
|
/// Create a new <see cref="TextLine"/>.
|
||||||
/// </summary>
|
/// </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)
|
public TextLine(IReadOnlyList<Word> words)
|
||||||
{
|
{
|
||||||
if (words == null)
|
if (words == null)
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
{
|
{
|
||||||
get
|
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);
|
(Point1.Y - Point2.Y) * (Point1.Y - Point2.Y);
|
||||||
return (decimal)System.Math.Sqrt((double)l);
|
return (decimal)System.Math.Sqrt((double)l);
|
||||||
}
|
}
|
||||||
@@ -36,10 +36,10 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new <see cref="PdfLine"/>.
|
/// Create a new <see cref="PdfLine"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="x1"></param>
|
/// <param name="x1">The x coordinate of the first point on the line.</param>
|
||||||
/// <param name="y1"></param>
|
/// <param name="y1">The y coordinate of the first point on the line.</param>
|
||||||
/// <param name="x2"></param>
|
/// <param name="x2">The x coordinate of the second point on the line.</param>
|
||||||
/// <param name="y2"></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)) { }
|
public PdfLine(decimal x1, decimal y1, decimal x2, decimal y2) : this(new PdfPoint(x1, y1), new PdfPoint(x2, y2)) { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@@ -71,10 +71,6 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new <see cref="PdfRectangle"/>.
|
/// Create a new <see cref="PdfRectangle"/>.
|
||||||
/// </summary>
|
/// </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)
|
public PdfRectangle(decimal x1, decimal y1, decimal x2, decimal y2)
|
||||||
{
|
{
|
||||||
decimal bottom;
|
decimal bottom;
|
||||||
@@ -132,7 +128,6 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// To string override.
|
/// To string override.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"[{TopLeft}, {Width}, {Height}]";
|
return $"[{TopLeft}, {Width}, {Height}]";
|
||||||
|
Reference in New Issue
Block a user