Skip to main content
Inspiring
April 25, 2010
Answered

Paragraph Padding

  • April 25, 2010
  • 1 reply
  • 872 views

I'm trying to change the padding of a paragraph using this (doesn't work):

var pf:TextLayoutFormat = new TextLayoutFormat();
pf.paddingRight = 50;

IEditManager( textFlow.interactionManager ).applyParagraphFormat(pf);

I have several paragraph, but only want to change the padding of one of them. If I do this, I can change the padding of all paragraphs (the container padding):

var pf:TextLayoutFormat = new TextLayoutFormat();
pf.paddingRight = 50;

IEditManager( textFlow.interactionManager ).applyContainerFormat(pf);

Any ideas?

This topic has been closed for replies.
Correct answer rdermer

paragraphStartIndent and paragraphEndIndent.

1 reply

Adobe Employee
April 26, 2010

Padding on paragraphs is not implemented in TLF 1.0, only padding on containers, as you note. However, you can get pretty much the same effect by using paragraphSpaceBefore and paragraphSpaceAfter properties. You can set this on the TextFlow, and it gets inherited and applied to the paragraphs, or you can set it on individual paragraphs.

- robin

oscar7878Author
Inspiring
April 29, 2010

Thanks Robin. Any work around for paddingLeft and paddingRight?

rdermerCorrect answer
Adobe Employee
April 30, 2010