RelativeWidth class
Defines the RelativeWidth Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is wp14:sizeRelH.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Word.Drawing.RelativeWidth
Namespace: DocumentFormat.OpenXml.Office2010.Word.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.3.16 sizeRelH
Target namespace: http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing
Optional child element of:anchor as specified in [ISO/IEC-29500-1] section 20.4.2.3.
If present, this element specifies that the horizontal size (width) is relative. If absent, the horizontal size is absolute.
A CT_SizeRelH element that specifies the relative width of a floating DrawingML object in a WordprocessingML document.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="sizeRelH" type="CT_SizeRelH"/>
See section 5.11 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.5.59 CT_SizeRelH
Target namespace: http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing
Referenced by: sizeRelH
Specifies the relative width of a floating DrawingML object in a WordprocessingML document.
Child Elements:
pctWidth: An ST_Percentage element (as specified in [ISO/IEC-29500-4] section 12.1.2.2 and [ISO/IEC-29500-1] section 20.1.10.40) that specifies the width.<127>
Attributes:
relativeFrom: An ST_SizeRelFromH attribute that specifies the base on which the relative width is calculated.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_SizeRelH">
<xsd:sequence>
<xsd:element name="pctWidth" type="a:ST_PositivePercentage" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="relativeFrom" type="ST_SizeRelFromH" use="required"/>
</xsd:complexType>
See section 5.11 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).