Shapes in WPF DOCX Editor
29 Aug 20261 minute to read
Shapes are drawing objects that include a text box, rectangles, lines, curves, circles, etc. It can be preset or custom geometry. At present, WPF DOCX Editor does not have support to insert shapes. however, if the document contains a shape while importing, it will be preserved properly.
Starting from v18.3.0.x, the shape preservation is supported.
Supported shapes
The WPF DOCX Editor has preservation support for the following shapes:
- Text box
- Rectangle
Text box shape
A text box is a rectangular area on the document where you can enter text. When you click in a text box, a flashing cursor is displayed, indicating that you can begin typing. It allows you to enter multiple lines of text with rich text formatting.
Shape resizer
The WPF DOCX Editor also supports a built-in shape resizer to resize the shapes present in the document. The shape resizer supports both touch and mouse interactions.
Text wrapping style
Text wrapping refers to how shapes fit with surrounding text in a document. Please refer to this page for more information about text wrapping styles available in Word documents.
Positioning the shape
WPF DOCX Editor preserves the position properties of the shape and displays the shape based on position properties. It does not support modifying the position properties. If the shape is positioned relative to a line or paragraph, it moves automatically as text is edited.
Limitation: Currently, the shape with text wrapping style
In-Line with Textcan only be dragged and dropped anywhere in the document.
Version notes:
- Shape preservation is supported starting from v18.3.0.x.
- The position properties are preserved starting from v19.1.0.x.
You can refer to our WPF DOCX Editor feature tour page for its groundbreaking feature representations. You can also explore our WPF DOCX Editor example to know how to render and configure the editing tool.