Share via


Shape Class

Shape (Delimiters).When the object is serialized out as xml, its qualified name is m:shp.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Math.Shape

Namespace:  DocumentFormat.OpenXml.Math
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class Shape _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As Shape
public class Shape : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

22.1.2.97 shp (Shape (Delimiters))

This element specifies the shape of delimiters in the delimiter object d. Delimiters can be centered around the math axis of the mathematical text and still be made to fit the entire height of their contents (see right-hand example below), or their height and shape can be altered to exactly match their contents (see left-hand example below). These settings significantly impact the shape of the mathematical text. When this element is omitted, delimiters are 'centered'. Whether the element is absent or present without the val attribute, the default of the val attribute is centered. [Example: In the examples below, delimiters will be matched to the exact shape of their contents contents on the left, and will be centered on the right:

Match

Centered

<m:dPr>
<m:shp  m:val="match"/>
</m:dPr>
<m:dPr>
<m:shp  m:val="centered"/>
</m:dPr>

end example]

Parent Elements

dPr (§22.1.2.31)

Attributes

Description

val (Value)

Specifies the shape of the parent element. Possible values are match and centered.

The possible values for this attribute are defined by the ST_Shp simple type (§22.1.3.10).

[Note: The W3C XML Schema definition of this element’s content model (CT_Shp) is located in §A.6.1. end note]

© ISO/IEC29500: 2008.

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

Shape Members

DocumentFormat.OpenXml.Math Namespace