Martin Klar wrote:

Starting from the selected ltextrange:
Thiscomoponent.currentselection.getbyindex(0).paraAdjust = 3 (3 = center , 0 = left .....)
hope it helps
Fernand
Hello Folks,

sorry, if this question is too simple, in case just give me a hint for the right manual.

The simple task:
How can I center an line of text (like highlighting a portion of text, then clicking the "center"-button in OO-interactive mode).

I suppose some use  of

http://api.openoffice.org/docs/common/ref/com/sun/star/style/ParagraphProperties.html

but I found no examples .

Any help appreciated.

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to