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.
Unfortunately, activation email could not send to your email. Please try again.

Text Alignment

Thread ID:

Created:

Updated:

Platform:

Replies:

25133 Feb 18,2005 12:14 PM Feb 24,2005 07:19 AM Windows Forms 1
loading
Tags: PDF
Donovan Chudej
Asked On February 18, 2005 12:14 PM

I want to align some text. The following is the code that I can''t seem to get it to work: IPDFGraphicState pdfAlign = pdfDoc.Graphics.CreateGraphicState(); pdfAlign.TextAlignment = TextAlignment.Center; firstPage.Graphics.DrawText(new Point(0,10),"LWDA No.",pdfFontHeader,pdfAlign);

Administrator [Syncfusion]
Replied On February 24, 2005 07:19 AM

Hi Donovan, Currently Text Alignment only works on Text inside a Rectange, Table cell etc. Please try this IPDFGraphicState pdfAlign = pdfDoc.Graphics.CreateGraphicState(); pdfAlign.TextAlignment = TextAlignment.Center; firstPage.Graphics.DrawMultiText(new RectangleF(0,10,300,100),"LWDA No.",pdfFontHeader,pdfAlign); Currently there is no support for complex layout structures like Sentence, Paragraphs etc, so there is no proper support for Text Alignment, However we will be implementing those structures shortly and they would have options for text alignment. Please let me know if you have any questions. Thanks, Stephen. >I want to align some text. The following is the code that I can''t seem to get it to work: > >IPDFGraphicState pdfAlign = pdfDoc.Graphics.CreateGraphicState(); > >pdfAlign.TextAlignment = TextAlignment.Center; > >firstPage.Graphics.DrawText(new Point(0,10),"LWDA No.",pdfFontHeader,pdfAlign); >

CONFIRMATION

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.

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.

;