Keep headers with related text
Break a page if the item will not fit on the current page Created ToString method for vlnParagraph Created ToString method for ParagraphLocation Changed Between logic for overlap to exclude exact match
This commit is contained in:
@@ -119,6 +119,10 @@ namespace Volian.Print.Library
|
||||
}
|
||||
public partial class vlnParagraph : vlnPrintObject
|
||||
{
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0} - {1} - '{2}'", this.YTop, this.YSize, this.MyItemInfo.ShortPath);
|
||||
}
|
||||
private vlnTable _MyGrid;
|
||||
public vlnTable MyGrid
|
||||
{
|
||||
@@ -2144,6 +2148,10 @@ namespace Volian.Print.Library
|
||||
}
|
||||
public class ParagraphLocation
|
||||
{
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0} - {1} - '{2}'", this.StepLevel, this.YTop, this.MyParagraph.MyItemInfo.ShortPath);
|
||||
}
|
||||
private float _YTop;
|
||||
public float YTop
|
||||
{
|
||||
@@ -2184,7 +2192,7 @@ namespace Volian.Print.Library
|
||||
return false;
|
||||
}
|
||||
public static bool Between(float x, float lower, float higher)
|
||||
{ return x >= lower && x <= higher; }
|
||||
{ return x > lower && x < higher; }
|
||||
public bool Overlap(ParagraphLocation otherParagraphLocation)
|
||||
{
|
||||
if (Between(otherParagraphLocation.YTop, YTop, YBottom)) return true; // The top is within the other
|
||||
|
Reference in New Issue
Block a user