-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TextLines methods, samples, CHANGELOG.md
- Loading branch information
Showing
73 changed files
with
575 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/lib/iTin.Utilities/iTin.Utilities.Pdf/iTin.Utilities.Pdf.Design/Text/PdfTextLine.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
| ||
namespace iTin.Utilities.Pdf.Design.Text | ||
{ | ||
/// <summary> | ||
/// Defines a <b>pdf</b> text line object. | ||
/// </summary> | ||
public sealed class PdfTextLine | ||
{ | ||
#region constructor/s | ||
|
||
#region [private] PdfText(string, int): Initializes a new instance of the class with a native pdf table reference | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PdfText"/> class. | ||
/// </summary> | ||
/// <param name="text">The text.</param> | ||
/// <param name="page">The page.</param> | ||
public PdfTextLine(string text, int page) | ||
{ | ||
Text = text; | ||
Page = page; | ||
} | ||
#endregion | ||
|
||
#endregion | ||
|
||
#region public properties | ||
|
||
#region [public] (string) Text: Gets or sets the text | ||
/// <summary> | ||
/// Gets or sets the text. | ||
/// </summary> | ||
/// <value> | ||
/// The text. | ||
/// </value> | ||
public string Text { get; set; } | ||
#endregion | ||
|
||
#region [public] (int) Page: Gets or sets the page | ||
/// <summary> | ||
/// Gets or sets the page. | ||
/// </summary> | ||
/// <value> | ||
/// The page. | ||
/// </value> | ||
public int Page { get; set; } | ||
#endregion | ||
|
||
#endregion | ||
|
||
#region public override methods | ||
|
||
#region [public] {override} (string) ToString(): Returns a string than represents the current object. | ||
/// <summary> | ||
/// Returns a <see cref="string" /> that represents this instance. | ||
/// </summary> | ||
/// <returns>A <see cref="string" /> that represents this instance.</returns> | ||
public override string ToString() => $"Text=\"{Text}\", Page={Page}"; | ||
#endregion | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.