Partager via


LineSpacing Class

Line Spacing.When the object is serialized out as xml, its qualified name is a:lnSpc.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.TextSpacingType
        DocumentFormat.OpenXml.Drawing.LineSpacing

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

Syntax

'Declaration
Public Class LineSpacing _
    Inherits TextSpacingType
'Usage
Dim instance As LineSpacing
public class LineSpacing : TextSpacingType

Remarks

The following table lists the possible child types:

  • SpacingPercent <a:spcPct>

  • SpacingPoints <a:spcPts>

[ISO/IEC 29500-1 1st Edition]

21.1.2.2.5 lnSpc (Line Spacing)

This element specifies the vertical line spacing that is to be used within a paragraph. This can be specified in two different ways, percentage spacing and font point spacing. If this element is omitted then the spacing between two lines of text should be determined by the point size of the largest piece of text within a line.

[Example: Consider the DrawingML shown below.

<p:txBody>
<a:p>
<a:pPr>
<a:lnSpc>
<a:spcPct val="200%"/>
</a:lnSpc>
</a:pPr>
    <a:r>
<a:rPr lang="en-US" dirty="0" smtClean="0"/>
<a:t>Some</a:t>
</a:r>
    <a:br>
<a:rPr lang="en-US" smtClean="0"/>
</a:br>
    <a:r>
<a:rPr lang="en-US" dirty="0" smtClean="0"/>
<a:t>Text</a:t>
</a:r>
</a:p>
</p:txBody>

This paragraph has two lines of text that have percentage based vertical spacing. This kind of spacing should change based on the size of the text involved as its size is calculated as a percentage of this. 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.

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

LineSpacing Members

DocumentFormat.OpenXml.Drawing Namespace