SpaceBefore class
Space Before. When the object is serialized out as xml, its qualified name is a:spcBef.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.TextSpacingType
DocumentFormat.OpenXml.Drawing.SpaceBefore
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
spcBef (Space Before)
This element specifies the amount of vertical white space that is present before a paragraph. This space is specified in either percentage or points via the child elements spcPct and spcPts.
[Example: Consider the DrawingML shown below.
<p:txBody>
… <a:p>
<a:pPr …>
<a:spcBef>
<a:spcPts val="1800"/>
</a:spcBef>
<a:spcAft>
<a:spcPts val="600"/>
</a:spcAft>
</a:pPr>
… <a:t>
Sample Text</a:t>
… </a:p
>
…</p:txBody>The above paragraph of text is formatted to have a spacing both before and after the paragraph text. The spacing before is a size of 18 points, or value=1800 and the spacing after is a size of 6 points, or value=600. end example]
Parent Elements |
|---|
defPPr (§21.1.2.2.2); lvl1pPr (§21.1.2.4.13); lvl2pPr (§21.1.2.4.14); lvl3pPr (§21.1.2.4.15); lvl4pPr (§21.1.2.4.16); lvl5pPr (§21.1.2.4.17); lvl6pPr (§21.1.2.4.18); lvl7pPr (§21.1.2.4.19); lvl8pPr (§21.1.2.4.20); lvl9pPr (§21.1.2.4.21); pPr (§21.1.2.2.7) |
Child Elements | Subclause |
|---|---|
spcPct (Spacing Percent) | §21.1.2.2.11 |
spcPts (Spacing Points) | §21.1.2.2.12 |
[Note: The W3C XML Schema definition of this element’s content model (CT_TextSpacing) is located in §A.4.1. end note]
© ISO/IEC29500: 2008.