C: RootElement methods

MethodDocumentCanvas setHyphenation() Yes Yes setSplitCharacters() Yes Yes setHorizontalAlignment() No No setTextAlignment() Yes Yes setHeight() No No setW

MethodDocumentCanvas

setHyphenation()

Yes

Yes

setSplitCharacters()

Yes

Yes

setHorizontalAlignment()

No

No

setTextAlignment()

Yes

Yes

setHeight()

No

No

setWidth()

No

No

setWidthPercent()

No

No

setBorder()

No

No

setBorderLeft()

No

No

setBorderRight()

No

No

setBorderTop()

No

No

setBorderBottom()

No

No

setBackgroundColor()

No

No

setFont()

Yes

Yes

setFontSize()

Yes

Yes

setFontColor()

Yes

Yes

setBold()

Yes

Yes

setItalic()

Yes

Yes

setLineThrough()

Yes

Yes

setUnderline()

Yes

Yes

setTextRenderingMode()

Yes

Yes

setStrokeColor()

Yes

Yes

setStrokeWidth()

Yes

Yes

setCharacterSpacing()

Yes

Yes

setWordSpacing()

Yes

Yes

setFontKerning()

Typ

Typ

setFontScript()

Typ

Typ

setBaseDirection()

Typ

Typ

setRelativePosition()

No

No

setFixedPosition()

No

No

setDestination()

No

No

showTextAligned()

Yes

Yes

showTextAlignedKerned()

Typ

Typ

add(BlockElement)

Yes

Yes

add(Image)

Yes

Yes

add(AreaBreak)

Yes

No

setMargins()

Yes

No

setLeftMargin()

Yes

No

setRightMargin()

Yes

No

setTopMargin()

Yes

No

setBottomMargin()

Yes

No


Share this article

Ready to use iText?

Try our iText 7 Library and add-ons FREE for 30 days. Test your proof of concept, and see if our solution is right for you.

Get my FREE trial
Contact

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now