mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 03:34:52 +08:00
Make TextBlock.SetReadingOrder(int) public
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reading order detector determines the page's blocks reading order.
|
/// Reading order detector determines the page's blocks reading order.
|
||||||
|
/// <para>Note: Make sure you use <see cref="TextBlock.SetReadingOrder(int)"/> to set each <see cref="TextBlock"/> reading order when implementing <see cref="IReadingOrderDetector.Get(IReadOnlyList{TextBlock})"/>.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IReadingOrderDetector
|
public interface IReadingOrderDetector
|
||||||
{
|
{
|
||||||
|
@@ -67,7 +67,11 @@
|
|||||||
TextDirection = lines[0].TextDirection;
|
TextDirection = lines[0].TextDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void SetReadingOrder(int readingOrder)
|
/// <summary>
|
||||||
|
/// Sets the <see cref="TextBlock"/>'s reading order.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="readingOrder"></param>
|
||||||
|
public void SetReadingOrder(int readingOrder)
|
||||||
{
|
{
|
||||||
if (readingOrder < -1)
|
if (readingOrder < -1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user