Text Wrapping

Aside from positioning data, WordprocessingML Drawing also needs to specify how text flows around the object. There are five different types of text wrapping which can be applied to floating objects present in WordprocessingML documents:

  • In Front/Behind Text - In this type of text wrapping, the drawing object is positioned on the document and text is not displaced around it.

  • Square Wrapping - In this type of text wrapping, the drawing object is positioned on the document and a rectangle is stored within the file format to determine the wrapping extents.

  • Tight Wrapping - In this type of text wrapping, a wrapping polygon is created and stored in the WordprocessingML document, and this polygon determines how text wraps around the left and right sides of the drawing object.

  • Through Wrapping - In this type of text wrapping, a wrapping polygon is created just like with tight wrapping, but any indents in the wrap polygon can be filled with text in this case.If the wrapping polygon looks like the following: Tight wrapping would look like this: While through wrapping would look like this: In the latter case, notice that text fills in the 'indentation' within the wrapping polygon.

  • Top and Bottom Wrapping - In this type of text wrapping, text cannot wrap around either side of the object, and shall only restart below the bottom edge of the document.