Creates a horizontal position element for floating drawings.
The positionH element specifies the horizontal positioning of a floating object relative to a base element (page, margin, column, etc.).
Reference: https://www.datypic.com/sc/ooxml/e-wp_positionH-1.html
<xsd:complexType name="CT_PosH"> <xsd:choice> <xsd:element name="align" type="ST_AlignH"/> <xsd:element name="posOffset" type="ST_PositionOffset"/> </xsd:choice> <xsd:attribute name="relativeFrom" type="ST_RelFromH" use="required"/></xsd:complexType> Copy
<xsd:complexType name="CT_PosH"> <xsd:choice> <xsd:element name="align" type="ST_AlignH"/> <xsd:element name="posOffset" type="ST_PositionOffset"/> </xsd:choice> <xsd:attribute name="relativeFrom" type="ST_RelFromH" use="required"/></xsd:complexType>
Horizontal position configuration
The positionH XML element
// Align to the left of the pagecreateHorizontalPosition({ relative: HorizontalPositionRelativeFrom.PAGE, align: HorizontalPositionAlign.LEFT,});// Offset from the margincreateHorizontalPosition({ relative: HorizontalPositionRelativeFrom.MARGIN, offset: 914400, // 1 inch in EMUs}); Copy
// Align to the left of the pagecreateHorizontalPosition({ relative: HorizontalPositionRelativeFrom.PAGE, align: HorizontalPositionAlign.LEFT,});// Offset from the margincreateHorizontalPosition({ relative: HorizontalPositionRelativeFrom.MARGIN, offset: 914400, // 1 inch in EMUs});
Creates a horizontal position element for floating drawings.
The positionH element specifies the horizontal positioning of a floating object relative to a base element (page, margin, column, etc.).
Reference: https://www.datypic.com/sc/ooxml/e-wp_positionH-1.html
XSD Schema