|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
jasonu
Joined: 03 Jul 2008 Posts: 1
|
Posted: Thu Jul 03, 2008 12:21 pm Post subject: Problem Aligning String Right |
|
|
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. |
|
Back to top |
|
|
jeff2008
Joined: 01 Jul 2008 Posts: 3 Location: Whittier, California
|
Posted: Thu Jul 03, 2008 6:56 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|
|
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 vote in polls in this forum
|
|