RelativeHeight Class

Defines the RelativeHeight Class.This class is only available in Office2010.When the object is serialized out as xml, its qualified name is wp14:sizeRelV.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Word.Drawing.RelativeHeight

Namespace:  DocumentFormat.OpenXml.Office2010.Word.Drawing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(PercentageHeight), FileFormatVersions.Office2010)> _
<OfficeAvailabilityAttribute(FileFormatVersions.Office2010)> _
Public Class RelativeHeight _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As RelativeHeight
[ChildElementInfoAttribute(typeof(PercentageHeight), FileFormatVersions.Office2010)]
[OfficeAvailabilityAttribute(FileFormatVersions.Office2010)]
public class RelativeHeight : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • PercentageHeight <wp14:pctHeight>

2.3.33 sizeRelV

Target namespace: https://schemas.microsoft.com/office/word/2008/9/16/wordprocessingDrawing

Optional child element of: [ISO/IEC-29500-1] section ยง20.4.2.3 anchor. If present this element specifies that the vertical size (height) is relative. If absent, the vertical size is absolute.

A CT_SizeRelV element that specifies the relative height of a floating DrawingML object within a WordprocessingML document.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="sizeRelV" type="CT_SizeRelV"/>

See section 5.12 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.5.72 CT_SizeRelV

Target namespace: https://schemas.microsoft.com/office/word/2008/9/16/wordprocessingDrawing

Referenced by: sizeRelV

Specifies the relative height of floating DrawingML object within a WordprocessingML document.

Child Elements:

pctHeight : An ST_Percentage (as specified in [ISO/IEC-29500-4] section 12.1.2.2 and [ISO/IEC-29500-1] section 20.1.10.40) element that specifies the height<18>.

Attributes:

relativeFrom : An ST_SizeRelFromV attribute that specifies the base on which the relative height is calculated.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_SizeRelV">

<xsd:sequence>

<xsd:element name="pctHeight" type="a:ST_Percentage" minOccurs="1" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="relativeFrom" type="ST_SizeRelFromV" use="required"/>

</xsd:complexType>

See section 5.12 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RelativeHeight Members

DocumentFormat.OpenXml.Office2010.Word.Drawing Namespace