We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback

positioning elements

Thread ID:





88434 Jul 22,2009 10:42 PM UTC Jul 28,2009 11:33 AM UTC ASP.NET Web Forms (Classic) 3
Tags: PDF
Andreas Hirtzel
Asked On July 22, 2009 10:42 PM UTC

I'd like to set the position of a new element regarding the position of the element before. How can I determine the position of the last element to calculate the position of the new one?

Thiruvenkadam E [Syncfusion]
Replied On July 24, 2009 12:26 PM UTC

Hi Andreas,

Thanks for your interest in Syncfusion products.

How to determine the position of the last element

Kindly refer the below code snippet which helps to determine the position of the last element.


//Create a new image.
PdfBitmap bmp = new PdfBitmap(@"..\..\Data\Image1.png");
//Set the initial position
PointF point=new PointF(0,0);
//Create a layout format and draws an image
PdfLayoutResult result = bmp.Draw(page, point);
//Create a new image.
bmp = new PdfBitmap(@"..\..\Data\Image2.png");
//Set the position of a new image.
point = new PointF(result.Bounds.Left, result.Bounds.Bottom+20);
//Draws an image.
result = bmp.Draw(page, point);

Please do find the sample from the below specified location which demonstrates how to determine the position of the last element and let me know if this helps.



Andreas Hirtzel
Replied On July 26, 2009 08:45 PM UTC

Hi Thiru,

works fine. Thank you!

Sri Subhashini M [Syncfusion]
Replied On July 28, 2009 11:33 AM UTC

Hi Andreas,

Glad to hear that it works great. Please let me know if you have any other queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon