1 person found this helpful
That will depend on the version of InDesign you are using.
There are three (or more) distinct ways to apply rounded corners:
1.a You could add a text frame and define cornerOption and cornerRadius (InDesign CS4)
1.b You could add a text frame and define bottomLeftCornerOption, bottomLeftCornerRadius etc. (InDesign CS5 and CS5.5)
2. You could use the method convertShape() on a rectangular text frame.
3. The geometric way involving circles (ovals) and rectangles and adding them to one single path.
4. Or build one path with rounded corners from scratch and change its contentType to ContentType.TEXT_TYPE
See Jongware's reference for the DOM objects and methods:
Thank you very much,
Actually I'm using InDesign CS5.
I will try the 1.b solution and come back to confirm that everything is fine !
To help the others after me. Here is a piece of code which work for me (CS5) :
myTextFrame.bottomLeftCornerOption = CornerOptions.ROUNDED_CORNER; myTextFrame.bottomLeftCornerRadius = 5;
Thank you Laubender.