chevron_right Demos chevron_right Label Text Wrapping
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Label Text Wrapping

This demo shows how to enable the text wrapping and trimming feature provided by the LabelStyle class. The options include wrapping at character or at word bounds, both with or without an ellipsis.

Aside from wrapping in rectangular shapes, the textWrappingShape property allows for wrapping in many more shapes like triangle, hexagon or ellipse. This can be combined with textWrappingPadding and padding to fine-tune the wrapping.

Things to Try

See the sources for details.