+1
Отвечен

difference between align and alignment?

Erica Birkman 12 лет назад обновлен icahill (Administrator) 12 лет назад 3
While working on my first app, I've noticed that there are two types of alignment tags. "Alignment" and "align" seem to work on different things. What are the correct use cases for both?
+1
'align' is a panel attribute that can be extended and used on virtually any object, this will serve to align the entire object to either: left, right or center.

'alignment' is used within a text object tag. This serves to align the text within the text area created when the text tag is invoked. Alignment can be used to move your text to a left, right, or center alignment.
Ian, you might want to check the align attribute in the add a pdf tutorial.

<text name="main" width="110" height="100" color="#000000" font="courier" size="12" align="center" valign="center" alignment="center" text="Hello World!"></text>


I was having trouble getting my text to be centered, so I did try the 'alignment' attribute to get it to be centered.
Bryan,

The tutorial does use the alignment tag in step 2 when you wrap your text tag in a panel tag for placement in the PDF.

Can you give me some more detail on where you were having trouble?

Сервис поддержки клиентов работает на платформе UserEcho