We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de62ee commit 64de725Copy full SHA for 64de725
MigraDocCore.Rendering/MigraDoc.Rendering/FormattedDocument.cs
@@ -423,6 +423,19 @@ public PageInfo GetPageInfo(int page)
423
return this.pageInfos[page];
424
}
425
426
+
427
+ /// <summary>
428
+ /// Returns the absolute Y postion of the last item on last page in points.
429
+ /// Must be called after rendering the document.
430
+ /// </summary>
431
+ /// <returns>double the Y Position.</returns>
432
+ public double GetCurrentMigraDocPosition()
433
+ {
434
+ RenderInfo[] RenderInfos = GetRenderInfos(PageCount);
435
+ RenderInfo r = RenderInfos[RenderInfos.Length - 1];
436
+ return r.LayoutInfo.ContentArea.Y + r.LayoutInfo.ContentArea.Height;
437
+ }
438
439
#region IAreaProvider Members
440
441
Area IAreaProvider.GetNextArea()
0 commit comments