PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 23, 2024 9:04 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jul 03, 2008 12:21 pm 
Offline

Joined: Thu Jul 03, 2008 12:18 pm
Posts: 1
Hi guys/gals,

This is probably really stupid but i'm having trouble aligning a string to the right hand side. The code i'm using is:

Code:
                    gfx.DrawString(foundRows[count].ItemArray[7].ToString(), fntDetails, XBrushes.Black,
                        new System.Drawing.Point(478, start));


I need to align it right instead of left. How can i do this ?

Thanks in advance.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jul 03, 2008 6:56 pm 
Offline

Joined: Tue Jul 01, 2008 5:14 pm
Posts: 3
Location: Whittier, California
Use the version of DrawString that takes an XStringFormat parameter in addition to the parameters that you are already using. I am a newbie, but I ran into a similar situation yesterday while playing around with adding page numbering to an existing document. If you want to see the XStringFormat option in an example, check out the two pages to one sample code. Sorry I cannot offer any more particulars, but I think this will get you going in the right direction.

_________________
Jeff


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 179 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group