docx
    Preparing search index...

    Function createWrapThrough

    • Creates through text wrapping for a floating drawing.

      WrapThrough wraps text around the contours of the drawing like WrapTight, and also fills any open space inside the drawing, such as the middle of a ring.

      Reference: http://officeopenxml.com/drwPicFloating-textWrap.php

      <xsd:complexType name="CT_WrapThrough">
      <xsd:sequence>
      <xsd:element name="wrapPolygon" type="CT_WrapPath"/>
      </xsd:sequence>
      <xsd:attribute name="wrapText" type="ST_WrapText" use="required"/>
      <xsd:attribute name="distL" type="ST_WrapDistance"/>
      <xsd:attribute name="distR" type="ST_WrapDistance"/>
      </xsd:complexType>

      Parameters

      • Optionalmargins: IMargins

        The distances from the text on the left and right. The top and bottom aren't written for through wrapping

      • OptionaltextWrapping: Pick<ITextWrapping, "side">

        Which sides the text wraps on. Defaults to both

      Returns XmlComponent